|
Re: Visual C++ 2005 Designer
I was just now actually studying for my Software final and saw a section of notes that that will help explain Parent / Child even more. . .
2.3 Inheritance
·Allows the derivation of one class from another.
·Subclasses or child or derived classes contain all of the methods and attributes of the parent or super or base class.
·The subclass may override some of the inherited methods
·The subclass may also add new methods and attributes.
oExample: Military platform base class – robot, UAV, soldier, tank, airplane, etc. child classes.
·Specialization – a subclass that inherits from a superclass and has additional specification. Elevator button is a kind of control but all buttons are not elevator buttons. Elevator button is a specialized button.
·Generalization – the opposite of specialization.
·Inheritance increase reuse and thus reduces the total volume of code needed – less to write, test, document, etc.
__________________
2010 to Present, Scorekeeper/Field Power Volunteer for FRC/FTC/FLL
2005 - 2010, Team 171 College Mentor
2002 - 2005, Team 930 Student
|