Sayaksome 18700122038
Sayaksome 18700122038
STREAM - CSE
ROLL NO. - 18700122038
YEAR - 3rd
SEMESTER - 5th
PAPER NAME - OBJECT ORIENTED PROGRAMMING
PAPER CODE - PCC-CS503
NAME OF EXAMINATION#CA1
SESSION - 2022-26
1
CONTENTS
2
Features of Object Oriented Programming(OOPS)
Object-Oriented Programming (OOP) is a programming
paradigm that uses objects and classes to design and develop
software. OOP focuses on representing data and behavior as
objects, which interact with each other to perform tasks.
3
Encapsulation
Data Hiding
Encapsulation conceals data within an object, preventing direct access and modification from outside the object.
Data Protection
Encapsulation protects data integrity by ensuring that data can only be accessed and modified through controlled
Modularity
Encapsulation promotes code reusability and modularity. Objects become self-contained units, which can be
4
Inheritance
1 Parent Class
The parent class provides a set of common attributes and methods that are inherited by its child
classes.
2 Child Class
The child class inherits the attributes and methods of the parent class, but can also have its own
3 Code Reuse
Inheritance promotes code reuse by allowing child classes to inherit features from their parent
5
Polymorphism
Multiple Forms Method Overriding Flexibility
Polymorphism allows objects of different classes to be Child classes can override methods inherited from their Polymorphism makes code more flexible by allowing the
treated as objects of a common type. parent class, providing specialized behavior for specific same code to work with different objects, simplifying
6
Abstraction
1 Hidden Complexity
Abstraction simplifies complex systems by hiding unnecessary details and presenting only essential
information to users.
2 Focus on Essentials
Abstraction allows programmers to focus on the core functionality of objects without worrying about the
3 Code Readability
Abstraction improves code readability and maintainability by reducing the amount of code needed to
7
Classes and Objects
Class
A class is a blueprint or template that defines the attributes and methods of an object.
Object
An object is an instance of a class. It represents a real-world entity with specific attributes and
behaviors.
Relationship
Objects are created from classes. A class can be used to create multiple objects, each with its
8
Data Abstraction
Data Abstraction Implementation Details
Hides the internal details of an object. Users only interact with the object through
defined interfaces.
Provides a simplified view of the object. Allows for flexibility and change without
affecting users.
9
Advantages of OOP
Code Reusability
OOP promotes code reusability through inheritance and modularity, reducing development time and effort.
Maintainability
OOP makes code easier to maintain and update due to its modular structure and data encapsulation.
Flexibility
OOP provides flexibility for adapting to changing requirements, as objects can be easily modified and extended.
10
Collaboration
Thank You
11