Computer Science, asked by Ashwin5999, 1 year ago

In OOP, which of these helps the compiler process objects differently based on their data type or class?

Answers

Answered by sailorking
8

Answer:

In OOP, the compiler process objects differently based on their class they belong to. OOP concept of the programming language is the widely used method of the programming language in the market. When there are many ways of solving problems available, the best comes out is the OOP paradigm.

Explanation:

In OOP there are objects and classes, classes are the blueprint of an object, and objects are instances of objects. When there are new objects built the design of that object depends on the class it belongs to.

Answered by smartbrainz
2

In OOP, Polymorphism helps the compiler process objects differently based on their data type or class

Explanation:

In terms of 'programming', polymorphism means multiple reuses of a single code. In particular, it is a program's ability to handle objects variously based on the data type or class.

Polymorphism offers the following advantages -  

  • This lets the programmer reuse the codes, i.e. classes can be reused as needed once they have been written, checked and enforced. Save a great deal of time.
  • We can use a single variable to store multiple types of data.  
  • The codes are easy to debug.

To know more

Difference between inheritance and polymorphism in oops

https://brainly.in/question/1274802

The compile time polymorphism in C++ language are .......... .​

https://brainly.in/question/14796219

Similar questions