240 likes | 245 Views
Step-by-step guide on creating, defining properties, accessor methods, constructors, and forms for base and derived classes in object-oriented programming.
E N D
Week 12Object-Oriented Programming Base and Derived Classes Lab Exercise
Steps • Create the class • Define the properties • Create the accessor methods • Create the constructors • Create the form • Create the derived classes
Accessor Methdods Add the accessor methods Tests the length of the character string
Constructors Add the constructors
Create the Form Text boxes Combo box Text box Radio buttons Group box Buttons List box Labels
Define the Objects Objects to classes Class Object
Button Clicked Find the checked radio button Instantiate the object
When the user selects an item in the list box, the corresponding counts appear in the labels