General information
Category:
Object Oriented Programming
>I want may control autocopy all code from the parent class.
Nope, the code isn't auto copied. Why would that be desirable, if youdon't mind me asking. The whole idea of inheritance is to create reusable, encaspulated code.
If you wrote a routine in a class, and it copied itself, and you needed to make changes to that routine, you would have to fix that code in the class AND everywhere it was copied. The goal of inheritance is to make one change.
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only