Lesson 4 Object Oriented Programming
Lesson 4 Object Oriented Programming
Submitted by:
BAUTISTA, Merlin J.
Gr. 11-Parmenides
Submitted to:
Mr. Gonzales
LESSON 4
Objectives:
- OOP is a type of programming which was fully present in visual basic 2008 and was not
fully developed in visual basic 2006. OOP is a kind of programming where the user
defines the data types and the operations that can be done with the said data types.
- For one to qualify as an OOP it must have these three core technologies namely
encapsulation, inheritance, and polymorphism which will be defined below:
Encapsulation
- Encapsulation is a part of OOP where the user creates modules where it gives functions
to certain data, this kind of data is called classes. These classes contain data and even
methods which dictates what data can do.
Inheritance
- Inheritance is one core technology of OOP which allows one class to pass down or
inherit the data and methods of the previous class. This lessens the programming and
lessens the time to complete the program.
Polymorphism
- Polymorphism allows data and objects to change according to an event but not before
the event happens but at the exact same time an event happen. An example of this is
when a cursor comes across a link and changes is shape to a hand.
Quiz:
Visual Basic 2008 1. What version of visual basic is OOP fully functional?
Encapsulation, Inheritance, Polymorphism 2-4. What are the 3 core technologies of OOP?
Encapsulation 5. part of OOP where the user creates modules where it gives functions to
certain data, this kind of data is called classes.
SW:
1-2. Explain the function of Object-Oriented Programming.
3-8. Explain the function of encapsulation, inheritance, and polymorphism.
9-10. How does OOP improve or make programming easier?
Activity:
Make an example of a class incorporating encapsulation and inheritance.