I was wondering, what are the exact advantages of inheritance over just redoing a class? Besides saving code space retyping it all, does it decrease compile time, make program run faster, be smaller, or what?
I was wondering, what are the exact advantages of inheritance over just redoing a class? Besides saving code space retyping it all, does it decrease compile time, make program run faster, be smaller, or what?
There are plenty of books written on object oriented programming, trying to summarize it here would be too time consuming.
Polymorphism is one benefit that comes to mind...
I know polymorphism, I am talking about program speed, compile speed, program size,etc., not the in program benefits.
lets see inheritence does not generate smaller code, nor faster code, nor does it decrease compile time or anything. it is used to extend the functionality of something that allready exists.
"only two things are infinite, the universe and human stupidity, and im not sure about the former." - albert einstein