Why is inheritance an important aspect of object oriented programming?
mahela007
6
Posting Whiz in Training
Recommended Answers
Jump to PostConsider this:
Say (just pretend) you have a objects called CD with the following attributes:
shape
size
capacity[Actions/Methods]
Spin
RecordThen you would have to implement all of those properties and actions. Now say you wanted an object called DVD with the exact same attributes. …
All 4 Replies
scru
909
Posting Virtuoso
Featured Poster
Ene Uran
commented:
nice example
+6
jrcagle
commented:
Good explanation
+4
jrcagle
77
Practically a Master Poster
scru
commented:
indeed
+5
Ene Uran
638
Posting Virtuoso
lllllIllIlllI
178
Veteran Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.