0% found this document useful (0 votes)
33 views7 pages

Mewar University

Ravi Kumar Sharma is presenting on Object Oriented Programming concepts for his 4th semester B.Tech in Computer Science and Engineering. The key OOPs concepts discussed are objects, classes, inheritance, polymorphism, abstraction, and encapsulation. Inheritance provides code reusability by allowing subclasses to inherit properties from parent classes. Polymorphism means having many forms and allows the same message to be displayed in different forms depending on instances. Abstraction hides internal details and shows only necessary functionality, while encapsulation wraps data and functions together to manipulate that data.

Uploaded by

Ravi Sharma
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
33 views7 pages

Mewar University

Ravi Kumar Sharma is presenting on Object Oriented Programming concepts for his 4th semester B.Tech in Computer Science and Engineering. The key OOPs concepts discussed are objects, classes, inheritance, polymorphism, abstraction, and encapsulation. Inheritance provides code reusability by allowing subclasses to inherit properties from parent classes. Polymorphism means having many forms and allows the same message to be displayed in different forms depending on instances. Abstraction hides internal details and shows only necessary functionality, while encapsulation wraps data and functions together to manipulate that data.

Uploaded by

Ravi Sharma
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 7

MEWAR UNIVERSITY

RAVI KUMAR SHARMA


B.TECH CSE (IV SEM)
MUR2101097
TOPIC OF PRESENTATION: OOPS &ITS
CONCEPTS
SUBMITTED TO :SHALINEE PAREEK
•OOPs (Object Oriented Programming System)
• Object-OrientedProgramming is a methodology or paradigm to
design a program using classes and objects. It simplifies the
software development and maintenance by providing some
concepts:
• Object
• Class
• Inheritance
• Polymorphism
• Abstraction
• Encapsulation
Inheritance
When one object acquires all the properties and behaviours of parent object i.e. known as
inheritance. It provides code reusability.

• Sub class - Subclass or Derived Class refers to a class that receives properties
from another class.
• Super class - The term "Base Class" or "Super Class" refers to the class from
which a subclass inherits its properties.
Inheritance
• Reusability - As a result, when we wish to create a new class, but an existing
class already contains some of the code we need, we can generate our new class
from the old class . This allows us to utilize the fields and methods of the pre-
existing class.
Polymorphism
• The word polymorphism means having many forms. In simple words, we can
define polymorphism as the ability of a message to be displayed in more than
one form. A person at the same time can have different characteristics. A man at
the same time is a father, a husband, and an employee. So the same person
possesses different behavior in different situations. This is called polymorphism.
An operation may exhibit different behaviors in different instances. The behavior
depends upon the types of data used in the operation. C++ supports operator
overloading and function overloading.
Abstraction
Hiding internal details and showing functionality is
known as abstraction. Data abstraction is the process of
exposing to the outside world only the information that is
absolutely necessary while concealing implementation or
background information.For example: phone call, we
don't know the internal processing.

In C++, we use abstract class and interface to achieve


abstraction.
Encapsulation
Encapsulation is defined as wrapping up data and information under a
single unit. In Object-Oriented Programming, Encapsulation is defined
as binding together the data and the functions that manipulate them.
Consider a real-life example of encapsulation, in a company, there are
different sections like the accounts section, finance section, sales
section, etc. The finance section handles all the financial transactions
and keeps records of all the data related to finance. Similarly, the sales
section handles all the sales-related activities and keeps records of all
the sales. Now there may arise a situation when for some reason an
official from the finance section needs all the data about sales in a
particular month. In this case, he is not allowed to directly access the
data of the sales section. He will first have to contact some other
officer in the sales section and then request him to give the particular
data. This is what encapsulation is. Here the data of the sales section
and the employees that can manipulate them are wrapped under a
single name “sales section”.
•THANK YOU

You might also like