C++ Programming - OOPS Concepts - Discussion

Discussion Forum : OOPS Concepts - General Questions (Q.No. 30)
30.
Which one of the following options is correct about the statement given below? The compiler checks the type of reference in the object and not the type of object.
Inheritance
Polymorphism
Abstraction
Encapsulation
Answer: Option
Explanation:
No answer description is available. Let's discuss.
Discussion:
20 comments Page 2 of 2.

Kushal baldev said:   9 years ago
Polymorphism means one name and multiple implementations.

We have two types of polymorphism early binding and late binding in early binding we are able to know at compile time but in late binding we will know at run time what actually the function will be called.
(2)

Prakash pathiyam said:   9 years ago
Helpful explanations, Thanks.

Dipak Borkar said:   9 years ago
Good explanation, thank you all.

Mahesh said:   9 years ago
Good explanations. Thank you all.

Mamta gehlot said:   8 years ago
Good explanation. Thanks to all.
(1)

Nitin said:   8 years ago
Thank you all.

Aditya Lath said:   7 years ago
In compile Time polymorphism (i.e overloading) compiler doesn't need to check reference of an object/reference variable but in case of run-time polymorphism, it is required to check reference of Object.
(3)

Sapana said:   6 years ago
I aggree with you @Kushal.
(1)

Avinash bacchewar said:   6 years ago
Agree @Aditya lath.

Aradhye said:   1 month ago
- Runtime polymorphism allows a base class reference or pointer to refer to a derived class object.

- But compile-time polymorphism, the compiler only sees the reference type unless the function is marked virtual.


Post your comments here:

Your comments will be displayed after verification.