Oe-Ec604c

Download as pdf or txt
Download as pdf or txt
You are on page 1of 10

Academy Of Technology

Department: ECE Semester: SEM-6

Paper Name: Object-Oriented Programming Paper Code: OE-EC604C

Power Point Presentation on


[Understanding the Features of Object-Oriented Programming]

Presented By
Name: Abhigan Banerjee University Roll No.:16900320004

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

1
Overview:
 Introduction
 Features Of OOP
 Brief Description & Methodology
 Discussion
 Reference

2
Introduction:
 Before going straight in to the “Object Oriented Programming” we must
know why this type of language came into application, for that we should know
that based on the approach used languages are of 2 types mainly –

 Procedure Oriented Programming Language(POP) –


This is based on the step by step sequential approach and also
on subroutines and function calling. Ex – c, Algol, Cobol ,Basic.
But using POP we were unable to solve real life problems this is when,
The concept of OOP comes.

 Object Oriented Programming Language(OOP)-


This is based on the real life entities like object and classes along with
unique feature and versatility that is why it is one of the most used language
now a days. Ex- Java, python, groovy. Note- C++ is both POP & OOP.
3
Basic Features Of Object Oriented Programming:
Features
The Silver-lining features are –
 Class
 Objects  Polymorphism(Overloading & Overriding)
 Encapsulation  Encapsulation (Achieved by the help of
Classes & packages)
 Inheritance
 Inheritance (Reusability& functionalityenhanced)
 Polymorphism

 Abstraction These feature makes OOP unique.
 Message
Passing 4
Description Of Major Features:
 Encapsulation
To enhance the security we need to prevent the free movement of
data(methods & members) in the program i.e. we need to restrict
its motion inside a container in technical term inside a class or packages.

 Here the capsule is holding the


data members and in real life this
capsule is analogous to a Class.
It improves the security.

5
 Polymorphism
‘Poly’ means Many & ‘Morph’ means forms, i.e. ‘Many-forms’. If we want to
find the analogy with the real life application we take an example as follows-
 A student is not only a student he/she has many forms as Brother/Sister ,
son/daughter so this is an example of Polymorphism in the real life
perspective.
 In technical term a method or function can behave differently according to
Application.
 It increases the flexibility of the language.
 Polymorphism -
Compile time Run time
polymorphism polymorphism
Function or Method Virtual Function
Overloading & Hiding.
Operator Overloading Method Overriding 6
 Inheritance
Again if we take reference from real life application we can find that every
Children gets some features from their parents, this inheriting feature from
Parents is nothing but Inheritance.

By default all Vehicle


class method have came
inside the 3 child classes.

 If a class inherits other class then by default the child class will have the
methods and members which were present inside the parent class, we do not
need to redefine those, that is why it enhances Reusability.
7
Discussion:
 Due to the non validity of POP for real life entities and data is not secured in
that approach we have switched to OOP and it is a must learn because modern
programming is based on OOP as it provides better security and it is more
flexible along with a enhancing functionalities and have the feature of abstra-
ction too. So that is how we can understand the basic feature and need of OOP.

8
Reference:
 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.

9
Thank You

10

You might also like