blog

Home / DeveloperSection / Blogs / OOPS CONCEPT

OOPS CONCEPT

Anonymous User782 01-Sep-2018

What is oops?

Object oriented programming concept is basically related to object creation it allow users to create object and use them and methods to handle those objects. The main goal is to manipulate these objects and get results.

 OOP's Concept:

CLASS:

A class is a collection of similar entities. For example a group of “expensive cars”

Object:

An object is defined as an instance of a class there can be more than one instance of a class. For example Chair, table, pen etc.

Inheritance:

The process of acquiring properties of a base class is known as inheritance where the base class is a class whose properties are inherited. It is a basic fundamental property of object-oriented programming

Polymorphism:

It is a process of one interface into many forms. For example mobile application you can choose to call, text or mail.

Abstraction:

It is a process of hiding internal details and showing only relevant data to the object. For implementation we have to use abstract classes and interfaces.

Encapsulation:

Wrapping up data and code together is known as encapsulation.it can only be accessed using methods of their current class.

Association:

It is a relationship between two objects. Every object has its own lifecycle. For example, many students can associate with one teacher while one student can also associate with multiple teachers.

Aggregation:

In this technique, all objects have their own lifecycle. For example, consider the class/objects department and teacher. Here, a single teacher can’t belong to multiple departments, but even if we delete the department, the teacher object will never be destroyed.

Composition:

A composition is a specialized form of Aggregation. Child objects do not have their lifecycle so when parent object deletes all child object it will also delete automatically

Advantages of OOPS:

• It provides a clear understandable modular structure

• Objects can be reused.

• It also enhances program modularity because every object exists independently.



Updated 01-Sep-2018
I am a content writter !

Leave Comment

Comments

Liked By