Computer Science, asked by himanshulahon, 9 days ago

what is the inheritance mechanism in c++​

Answers

Answered by oODivineGirlOo
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 anokhichaturvedi26
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