Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
0% found this document useful (0 votes)
80 views

Lesson 4 Object Oriented Programming

The document discusses Object Oriented Programming (OOP) and defines it as a type of programming where users define data types and operations that can be performed on those data types. It explains that OOP has three core technologies - encapsulation, inheritance, and polymorphism - and provides examples of how classes incorporate these concepts. The lesson teaches students about OOP and its key features to improve programming and make it easier.

Uploaded by

Merlin Bautista
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
80 views

Lesson 4 Object Oriented Programming

The document discusses Object Oriented Programming (OOP) and defines it as a type of programming where users define data types and operations that can be performed on those data types. It explains that OOP has three core technologies - encapsulation, inheritance, and polymorphism - and provides examples of how classes incorporate these concepts. The lesson teaches students about OOP and its key features to improve programming and make it easier.

Uploaded by

Merlin Bautista
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 3

LA IMMACULADA CONCEPCION SCHOOL

E. CARUNCHO AVE. MALINAO PASIG CITY

Written Report in TVL-ICT:


Lesson 4 Object Oriented Programming

Submitted by:
BAUTISTA, Merlin J.
Gr. 11-Parmenides

Submitted to:
Mr. Gonzales
LESSON 4

Object Oriented Programming

Objectives:

At the end of this lesson, the student should be able to:

 Know what Object-Oriented Programming is.

 What makes a program Object Oriented.

 Be familiar with the 3 core technology of Object Oriented Programming.

Object Oriented Programming

- 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.

An example of a class is listed below:

Public Class Human Overridable Sub Show Info ()


'Data Members MessageBox.Show(Name)
Private Name as String MessageBox.Show(Birthdate)
Private Birthdate as String MessageBox.Show(Gender)
Private Gender as String MessageBox.Show(Age)
Private Age as Integer End Sub
'Methods End Class
MessageBox.Show(StudentID)
Public Class Students MessageBox.Show(Birthdate)
Inherits Human MessageBox.Show(Gender)
Public StudentID as String MessageBox.Show(Age)
Public Address As String MessageBox.Show(Address)
Overrides Sub ShowInfo( ) End Sub
MessageBox.Show(Name) End Class

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.

You might also like