Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/litpreet/inheritance
https://github.com/litpreet/inheritance
Last synced: 27 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/litpreet/inheritance
- Owner: LitPreet
- Created: 2022-09-29T16:48:43.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2022-10-04T17:01:48.000Z (over 2 years ago)
- Last Synced: 2024-11-16T07:11:00.452Z (3 months ago)
- Language: C++
- Size: 7.81 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# INHERITANCE IN C++
In C++, inheritance is a process in which one object acquires all the properties and behaviors of its parent object automatically. In such way, you can reuse, extend or modify the attributes and behaviors which are defined in other class.
In C++, the class which inherits the members of another class is called derived class and the class whose members are inherited is called base class. The derived class is the specialized class for the base class.
Types Of Inheritance
C++ supports five types of inheritance:
💡Single inheritance💡Multiple inheritance
💡Hierarchical inheritance
💡Multilevel inheritance
💡Hybrid inheritance