Download presentation
Presentation is loading. Please wait.
1
R. Ching MIS Department California State University, Sacramento Week 12 Object-Oriented Programming Base and Derived Classes Lab Exercise
2
R. Ching MIS Department California State University, Sacramento Steps Create the classCreate the class Define the propertiesDefine the properties Create the accessor methodsCreate the accessor methods Create the constructorsCreate the constructors Create the formCreate the form Create the derived classesCreate the derived classes
3
R. Ching MIS Department California State University, Sacramento Add the class from the Project menu
4
R. Ching MIS Department California State University, Sacramento Assign a name to the class
5
R. Ching MIS Department California State University, Sacramento Define the class’ properties
6
R. Ching MIS Department California State University, Sacramento Accessor Methdods Add the accessor methods Tests the length of the character string
7
R. Ching MIS Department California State University, Sacramento
9
Constructors Add the constructors
10
R. Ching MIS Department California State University, Sacramento Create the Form Text boxes Combo box Text box Group box Radio buttons Buttons List box Labels
11
R. Ching MIS Department California State University, Sacramento Add the Subclasses
12
R. Ching MIS Department California State University, Sacramento
13
Constructor (the same for each class)
14
R. Ching MIS Department California State University, Sacramento Super and Subclasses
15
R. Ching MIS Department California State University, Sacramento Define the Objects Objects to classes Object Class
16
R. Ching MIS Department California State University, Sacramento Button Clicked Find the checked radio button Instantiate the object
17
R. Ching MIS Department California State University, Sacramento
19
Adding Shared Variables
20
R. Ching MIS Department California State University, Sacramento Read-only property procedures
21
R. Ching MIS Department California State University, Sacramento Temporary Fix
22
R. Ching MIS Department California State University, Sacramento When the user selects an item in the list box, the corresponding counts appear in the labels
23
R. Ching MIS Department California State University, Sacramento Test for the Selected Item
24
R. Ching MIS Department California State University, Sacramento
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.