What are the use of Inheritance? And what is the different between them and simple classes.
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
^^thanx for the video...
Inheritance is basic concept in OOPs & programming
so that you can reuse and avoid replication of code...
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...