0% found this document useful (0 votes)
4 views1 page

OOPS Concepts

Uploaded by

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

OOPS Concepts

Uploaded by

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

OOP stands for Object-Oriented Programming.

It's a programming paradigm that


revolves around the concept of "objects," which can contain data, in the form of
fields (attributes or properties), and code, in the form of procedures (methods or
functions). OOP emphasizes the following principles:

1. **Encapsulation**: Encapsulation refers to the bundling of data (attributes) and


methods (functions) that operate on the data into a single unit, called an object.
It hides the internal state of an object and only exposes the necessary
functionality through methods.

2. **Inheritance**: Inheritance allows a new class (subclass or derived class) to


inherit properties and behavior (methods) from an existing class (superclass or
base class). This promotes code reusability and establishes a hierarchical
relationship between classes.

3. **Polymorphism**: Polymorphism allows objects of different classes to be treated


as objects of a common superclass. It enables methods to behave differently based
on the object that invokes them, facilitating flexibility and extensibility in
code.

4. **Abstraction**: Abstraction involves simplifying complex systems by modeling


classes based on real-world entities and only focusing on the relevant attributes
and behaviors. It hides the implementation details and exposes only essential
features to the outside world.

OOP languages, such as Java, C++, Python, and C#, provide features and syntax to
support these principles, allowing developers to create modular, maintainable, and
scalable software systems. OOP promotes a structured approach to software
development, making it easier to manage and understand complex codebases.

You might also like