You are on page 1of 11

COMPUTER

PROGRAMMING PROJECT

OBJECT-ORIENTED
PROGRAMMING
OBJECT ORIANTED PROGRAMMING
o Object-oriented programming has four basic
concepts

o If these concepts seems incredibly


complex,understaning the general framework
of how they work will help you understand
the basics of a computer program.
The four types of object-oriented
programming
o ENCAPSULATION
o ABSTRACTION
o INHERITANCE
o POLYMORPHISM
ENCAPSULATION
o The different objects inside of each program will try
to communicated with each other automatically.
o If a programmer wants to stops object from
interacting with each other, they need to be
encapsulation in individual classes.
o Through the process of encapsulation, classes
cannot change or interact with the specific variables
and function of an object
o Programmers can replicate this object throughout
different parts of the program or other programs .
ABSTRACTION
o Abstraction is like an extension of because it
hides certain properties and methods from the
outside code to make the interface of the object
simpler
o Programmers use abstraction for several
beneficial reasons.
o Overall, abstraction helps isolate the impact of
the changes made to the code so that if
something goes wrong, the change will only
affect the variables shown and not the outside
code.
INHERITANCE
o Using these concepts,programming can extend
the functionally of the codes exiting classes to
eliminate repetitive code.
o The main object is the super class and all objects
that follow it are subclasses.
o Subclasses can have separate elements object
while adding what they need from the super class
o Naming that object something like “HTML
ELEMENT” will cause other to inherit its
properties and methods so you can reduce
unnecessary code.
POLYMORPHISM
o This technique meaning “many forms or
shapes” allows programmers to render
multiple HTML elements depending on the
type of object.
o This concept allows programmers to redefine
the way something works by changing how it
is done or by changing the parts in which it is
done.
o Terms of polymorphism are called overriding
and overloading.
CONCLUSION OF OBJECT-ORIENTED
PROGRAMMING

Object-oriented programming revolves around


the concept of an object, which encapsulates
data and behavior acting on the data
together. An object provide its services
through a well-defines interface. This
interface specifies “what” the object offers,
abstracting “how” (actual implementation).
CONCLUSION OF OBJECT-ORIENTED
PROGRAMMING

Object-oriented programming revolves around


the concept of an object, which encapsulates
data and behavior acting on the data
together. An object provide its services
through a well-defines interface. This
interface specifies “what” the object offers,
abstracting “how” (actual implementation).
THANK YOU

DONE BY SHREE VARSHINI


8C

You might also like