1 / 24

Week 12 Object-Oriented Programming

Step-by-step guide on creating, defining properties, accessor methods, constructors, and forms for base and derived classes in object-oriented programming.

ddaggett
Download Presentation

Week 12 Object-Oriented Programming

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Week 12Object-Oriented Programming Base and Derived Classes Lab Exercise

  2. Steps • Create the class • Define the properties • Create the accessor methods • Create the constructors • Create the form • Create the derived classes

  3. Add the class from the Project menu

  4. Assign a name to the class

  5.  Define the class’ properties

  6. Accessor Methdods  Add the accessor methods Tests the length of the character string

  7. Constructors  Add the constructors

  8. Create the Form Text boxes Combo box Text box Radio buttons Group box Buttons List box Labels

  9. Add the Subclasses

  10. Constructor (the same for each class)

  11. Super and Subclasses

  12. Define the Objects Objects to classes Class Object

  13. Button Clicked Find the checked radio button Instantiate the object

  14. Adding Shared Variables

  15. Read-only property procedures

  16. Temporary Fix

  17. When the user selects an item in the list box, the corresponding counts appear in the labels

  18. Test for the Selected Item

More Related