what is the inheritance mechanism in c++
Answers
Answered by
0
Answer:
Inheritance is a mechanism of reusing and extending existing classes without modifying them, thus producing hierarchical relationships between them. In the main function, object obj accesses function A::f() through its data member B::x with the statement obj.
Answered by
1
Answer:
Inheritance is a mechanism of reusing and extending existing classes without modifying them, thus producing hierarchical relationships between them. In the main function, object obj accesses function A::f() through its data member B::x with the statement obj.
Similar questions