You are on page 1of 10

ACADEMY OF TECHNOLOGY

Dept: Electronics & communication Engineering Semester: 6th

Paper Name: Object Oriented Programming Paper Code: EC-602

Power Point Presentation on :- Understanding The Features Of Object Oriented


Programming

Name :- TUHIN DEY. University Roll No. :- 16900320006

To fulfil the requirement of Continuous Assessment 1 [CA1] of B.Tech


■ It is a programming paradigm including many fundamental languages like
C ++, Java etc.
■ It is modeling a system as a collection of object and hence the name object
appears in object oriented programming language (OOPs).
■ Objects contain method/functions and data.
■ An object provides public interface to code but maintains its own privacy i.e.
it doesn’t allow other parts of the system to know about the status of the
functions going on inside the object.
INHERITANCE EN C APSULATIO N

■ Classes inheriting characteristics ■ Enclosing information inside an


of other classes is called object is called encapsulation.
inheritance.
■ It makes certain field as private
■ Other name: Prototype. and makes other part public.
■ Parent class extend properties to ■ Private Interface is
child classes. method/attribute is available from
■ Reusability is related to
other method of same class.
inheritance. ■ Private Interface is
method/attribute
■ Multiple prototypes can be used in
is available from outside the class.
chain.
ABSTRACTION P OLYMORP HISM

■ Users interaction with subset of an ■ Creation of objects having similar


objects operation. behavior or actions.
■ Simple classes are used in to ■ ‘ poly’ means many and ‘ morph’
reduce means forms.
the complexities of the program . ■ It allows different implementation
■ If any complicated information is of the same method according to
used, it is hidden from user. the basic requirement of the class.
■ Encapsulation is extension of ■ Polymorphism provides better
abstraction. scalability and improves readability.
■ Code duplication is avoided and
code reusability increases.
METHOD OVE RR IDING METHOD OVE RLOADING

■ It is used in runtime polymorphism. ■ It is used in compile time


polymorphism.
■ When child class overrides parent
class’s method, the child class ■ Two methods having the same
may offer alternate name, no of arguments given in the
implementation. method may vary. Depending upon
the no of arguments of the method,
the results may vary.
OBJECT C L ASSE
S S
■ Segment containing attributes and ■ Classes are individual type.
processes. O b jects are building
■ Class allow its member to have its
blocks of programs. own position and behavior and are
■ Each object is derived from thus referred to as class instance.
specific ■ There are set of access specifiers
class type. in every class.
■ A variable/function/data structure ■ Subclasses are also present
might be called an object. inside
■ Objects give idea to inheritance classes to make it class-protected.
thus improving dependability and
maintenance.
■ Complex ideas can b e repeated.
■ They are reusable and are used in several
application.
■ Easy trouble-shooting.
■ Classes are easier to debug.
■ Inheritance helps to use the code again.
■ The main four fundamental feature are the base of OOPs- encapsulation,
inheritance, polymorphism and abstraction.
■ Encapsulation is self containing modules that connect processes to data.
■ Inheritance helps in hierarchy building i.e. classes can be organized in
hierarchy.
■ Polymorphism enables creation of procedures regarding objects.
■ Abstraction reduces the complexities.
■ Dynamic Programming, by E. V. Denardo, Dover Publications, 2003.

■ “The construction of optimal binary search trees using dynamic programming is


described in The Art of Programming: Sorting and Searching”, Vol.3, by D. E.
Knuth, Second Edition, Addison Wesley, 1998.

You might also like