Computer Science, asked by Vegito6207, 11 months ago

In oop, which concept allows one class object to be used within another class

Answers

Answered by mddanishalam191416
1

Answer:

In OOP ("Object Oriented Programming"), the concept which allows a class object to be used inside another class is instantiation. In "Object Oriented Programming", the term instantiation is used to refer to the process of creation of an object which is also called as an instance of its class.

✌✌✌✌✌✌✌✌✌✌✌✌✌✌✌✌

Answered by Anonymous
0

Explanation:

Answer:

Inheritance

  • Inheritance is a simple concept where a new(child) class is based on another(parent) class, in retains properties of old class.

  • for example, a cat class object can be inherited from animal object.

  • here, cat uses features of animal class/object within it.
Similar questions