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 1 of 2.

Aditya Lath said:   8 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)

Kushal baldev said:   10 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)

Aradhye said:   7 months 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.
(1)

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

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

Abhilasha said:   1 decade ago
If object is created run time by using base class pointer (allow to store address of any derived class)/reference and base class functions are virtual and overridden in derived class then base class pointer calls the function of derived class.

Karan khan said:   1 decade ago
What is wrapping?

Keshav miglani said:   1 decade ago
Wrapping means hiding and this concept used in encapsulation and abstraction but mostly this wrapping word used for encapsulation.

Vasanta said:   1 decade ago
What is polymorphism?

Riyaz said:   10 years ago
What is mean by many forms?


Post your comments here:

Your comments will be displayed after verification.