Computer Science, asked by thakurumangsingh, 7 months ago

characteristics of oop​

Answers

Answered by ShreshthaSaha
4

Objects:-

1) Objects are basic building blocks for designing programs.

2) An object is a collection of data members and associated member functions.

3) An object may represent a person, place or a table of data.

4) Each object is identified by a unique name. Each object must be a member of a particular class.

5) Example: chair, table, whiteboard are the objects of the class (class).

Classes:-

1) The objects can be made user-defined data types with the help of a class.

2) A class is a collection of objects that have identical properties, common behavior and shared relationship.

3) Once the class is defined any number of objects of that class is created.

4) Classes are user-defined data types A class can hold both data and functions.

5) For example planets, sun and moon are the members of the solar system class.

Data abstraction:-

1) Data abstraction refers to the process of representing essential features without including background details or explanations.

Data encapsulation:-

1) The wrapping of data and function into a single unit is called data encapsulation.

2) Data encapsulation enables data hiding and information hiding.

Inheritance:-

1) Inheritance is the process by which one object can acquire and the use of properties of another object.

2) The existing class is known as a base class or superclass.

3) The new class is known as a derived class or subclass.

4) The derived class shares some of the properties of the base class. Therefore a code from a base class can be reused by a derived class.

Polymorphism:-

1) The ability of an operator and function to take.

2) Multiple forms are known as polymorphism.

3) The different types of polymorphism are operator

4) overloading and function overloading.

.

.

.

plzz mark it as the brainliest answer!!!

Answered by Barbie358
2

Answer:

Ans1. Objects:-

1) Objects are basic building blocks for designing programs.

2) An object is a collection of data members and associated member functions.

3) An object may represent a person, place or a table of data.

4) Each object is identified by a unique name. Each object must be a member of a particular class.

5) Example: chair, table, whiteboard are the objects of the class (class).

Classes:-

1) The objects can be made user-defined data types with the help of a class.

2) A class is a collection of objects that have identical properties, common behavior and shared relationship.

3) Once the class is defined any number of objects of that class is created.

4) Classes are user-defined data types A class can hold both data and functions.

5) For example planets, sun and moon are the members of the solar system class.

Data abstraction:-

1) Data abstraction refers to the process of representing essential features without including background details or explanations.

Data encapsulation:-

1) The wrapping of data and function into a single unit is called data encapsulation.

2) Data encapsulation enables data hiding and information hiding.

Inheritance:-

1) Inheritance is the process by which one object can acquire and the use of properties of another object.

2) The existing class is known as a base class or superclass.

3) The new class is known as a derived class or subclass.

4) The derived class shares some of the properties of the base class. Therefore a code from a base class can be reused by a derived class.

Polymorphism:-

1) The ability of an operator and function to take.

2) Multiple forms are known as polymorphism.

3) The different types of polymorphism are operator

4) overloading and function overloading.

Explanation:

MARK AS BRAINLIEST

Similar questions