0% found this document useful (0 votes)
27 views

Object Oriented Programming

Uploaded by

Habibie habibie
Copyright
© © All Rights Reserved
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
27 views

Object Oriented Programming

Uploaded by

Habibie habibie
Copyright
© © All Rights Reserved
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 12

OBJECT

ORIENTED
PROGRAMMING
Object-oriented

“ programming is a
programming paradigm
where everything is
represented as an
OBJECT
2
What’s a Different ?

3
OOPs Concepts
 Polymorphism
 Inheritance
 Encapsulation
 Abstraction
 Class
 Object
4
Polymorphism
Polymorphism refers to the
ability of OOPs programming
languages to differentiate
between entities with the same
name efficiently.

5
Overloading Overriding
Overloading is about same Overriding is about same function,
function have different same signature but different classes
signatures. connected through inheritance.

6
Inheritance

Super Class Sub Class Reusability


The class that inherits the other
The class whose features are Inheritance supports the concept of
class is known as subclass(or a
inherited is known as “reusability”, i.e. when we want to
derived class, extended class, or
superclass(or a base class or create a new class and there is already a
child class). The subclass can add
a parent class). class that includes some of the code that
its own fields and methods in
we want, we can derive our new class
addition to the superclass fields
from the existing class.
and methods.

7
Encapsulation
Encapsulation is defined as the wrapping up of
data under a single unit. It is the mechanism
that binds together code and the data it
manipulates. Another way to think about
encapsulation is, it is a protective shield that
prevents the data from being accessed by the
code outside this shield.

8
Encapsulation

9
Abstraction
Data Abstraction is the property by virtue of
which only the essential details are displayed to
the user.The trivial or the non-essentials units
are not displayed to the user.
Let’s Try!

11
SILAHKAN IMPLEMENTASIKAN
OOP KEDALAM SEBUAH
PROJECT/CONTOH KASUS..
KEMUDIAN BUAT .PPT UNTUK
MENJELASKAN BAGIAN-BAGIAN DARI
OOP YANG DI IMPLEMENTASIKAN
KEDALAM PROJECT.

You might also like