Download presentation
Presentation is loading. Please wait.
Published byInga Mathisen Modified over 5 years ago
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
Similar presentations
© 2024 SlidePlayer.com. Inc.
All rights reserved.