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.

Samson said:   1 decade ago
Polymorphism is a example of dynamic binding so type of reference is considered on runtime.

Christian said:   1 decade ago
Is this because the object formed by polymorphism can take many forms?

Shashikant said:   1 decade ago
i think is becoz runtime polymorphism if we not mention the virtual keyword in base class then type is checked and function in the base class gets called...

Sadique rahman said:   1 decade ago
Object in polymorphism exist in many forms so it doesn't check the type of object while it will definitely check the type of reference in the object.

Roshu said:   1 decade ago
Why polymorphism?

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:   10 years ago
Wrapping means hiding and this concept used in encapsulation and abstraction but mostly this wrapping word used for encapsulation.

Vasanta said:   10 years ago
What is polymorphism?

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


Post your comments here:

Your comments will be displayed after verification.