+ 4

How many types of inheritance are there ?? And how it affects the working??

for instance what happens if i publically inherit a class or inherit it using private or protected method...

16th Mar 2017, 6:31 AM
Abdul Mannan
Abdul Mannan - avatar
2 Answers
+ 1
it would be easier for people to access inherited codes
16th Mar 2017, 9:11 AM
Uzair Mateen
Uzair Mateen - avatar
+ 1
In C++ there is 5 types viz. single, mutiple , multilevel, hybrid & hierarchical inheritance
16th Mar 2017, 12:02 PM
Lovish Sharma
Lovish Sharma - avatar