Presentation is loading. Please wait.

Presentation is loading. Please wait.

Features of OOP Abstraction Encapsulation Data Hiding Inheritance

Similar presentations


Presentation on theme: "Features of OOP Abstraction Encapsulation Data Hiding Inheritance"— Presentation transcript:

1 Features of OOP Abstraction Encapsulation Data Hiding Inheritance
Polymorphism Code Reuse

2 Abstraction and Encapsulation
Abstract Data Type Data and Operations on the data Encapsulation Class Data members Methods (Property, Sub, Function)

3 Abstraction and Encapsulation
FormClassList Display Button _MainForm.DisplayOneHouse(h) FormClassHouse Public Sub DisplayOneHouse(ByVal h As House)

4 Data Hiding Private data members Public Property, Sub, Function
Checking parameters and raising Exceptions FormClassHouse/FormClassList Call methods Try and Catch

5 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

6 Polymorphism FormClassHouse
The class cannot have variables of any House sub-classes FormClassList


Download ppt "Features of OOP Abstraction Encapsulation Data Hiding Inheritance"

Similar presentations


Ads by Google