Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 1

LAB 1: INTRODUCTION TO OOP

LEARNING OUTCOMES By the end of this lab, students should be able to : 1. Define OOP

THEORY
Classes, Object, Encapsulation, Data Abstraction, Inheritance and Polymorphism is a basic terminologies in Object Oriented programming

Encapsulation: is a process of tying together all data and methods that form a class and control the access to data by hiding its information.

Data abstraction: is a process to delete all unnecessary attributes and remain the necessary attributes to describe an object.

4 Main concepts of OOP

Polymorphism: Polymorphism is processes of giving the same message to another two or more different objects and produce different behaviors depend on how the objects receive the message.

Inheritance: Create a new class from an existing class together with new attributes and behaviors.

You might also like