Single inheritance of C++ inheritance

1. What is inheritance ?

Inheritance is an important means of object-oriented reuse . A class is defined by inheritance. Inheritance is the modeling of the relationship between types, sharing common things, and implementing things that are essentially different.

Through reuse , everything in the parent class becomes part of the child class .


Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325671660&siteId=291194637