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.
Discussion:
20 comments Page 2 of 2.
Roshu said:
1 decade ago
Why polymorphism?
Prakash pathiyam said:
10 years ago
Helpful explanations, Thanks.
Dipak Borkar said:
10 years ago
Good explanation, thank you all.
Mahesh said:
9 years ago
Good explanations. Thank you all.
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.
Nitin said:
8 years ago
Thank you all.
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...
Christian said:
1 decade ago
Is this because the object formed by polymorphism can take many forms?
Avinash bacchewar said:
6 years ago
Agree @Aditya lath.
Samson said:
1 decade ago
Polymorphism is a example of dynamic binding so type of reference is considered on runtime.
Post your comments here:
Quick links
Quantitative Aptitude
Verbal (English)
Reasoning
Programming
Interview
Placement Papers