What is the use of Inheritance ?

clmlbx

Technomancer
check this video..that is very basic but best and simplest I have ever seen

Inheritance

"Buckys c++" series is very basic and simplest.. just awesome
 

clinton

Blu For Life Hail Chelsea
An eg. would be-
U create a class Personal Details which has members such as name,bday,address,etc.
Now u can use these fields in sub classes such as Student,employee,etc. as they too require the above mentioned fields.
Thus it prevents creating diffrnt name,etc field for everx new class.

Hope u understood...
 
Top Bottom