Features of OOP Abstraction Encapsulation Data Hiding Inheritance Polymorphism Code Reuse
Abstraction and Encapsulation Abstract Data Type Data and Operations on the data Encapsulation Class Data members Methods (Property, Sub, Function)
Abstraction and Encapsulation FormClassList Display Button _MainForm.DisplayOneHouse(h) FormClassHouse Public Sub DisplayOneHouse(ByVal h As House)
Data Hiding Private data members Public Property, Sub, Function Checking parameters and raising Exceptions FormClassHouse/FormClassList Call methods Try and Catch
Inheritance Base class and Sub classes Visual (Form) Inheritance House Chicago, Madison, Platteville Visual (Form) Inheritance FormClassHouse Protected btnExit btnExit: EXIT FormClassBranch btnExit.Text: UNLOAD
Polymorphism FormClassHouse The class cannot have variables of any House sub-classes FormClassList