DIGIT-ARC read-only archive · snapshot: July 23, 2026

What is the use of Inheritance ?

5 posts · originally from https://geek.digit.in/community/threads/what-is-the-use-of-inheritance.150171/

Y
yo01 Original post #1
Dec 18, 2011 at 5:28 PM
What are the use of Inheritance? And what is the different between them and simple classes.
clmlbx
clmlbx #2
Dec 18, 2011 at 7:24 PM
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
Zangetsu
Dec 19, 2011 at 10:12 AM
^^thanx for the video...

Inheritance is basic concept in OOPs & programming
abhidev
abhidev #4
Dec 19, 2011 at 1:10 PM
so that you can reuse and avoid replication of code...
clinton
clinton #5
Dec 20, 2011 at 1:33 AM
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...