Notifications Mark All Read
No New notification
June 23, 2019
Base class pointer cannot point to derived class.
Derived class pointer cannot point to base class.
Pointer to derived class cannot be created.
Pointer to base class cannot be created.
Currently there is no PrepInsta Explanation. Did you know?
You can also submit your own version of explanations under user explanation section and also view other submitted explanations by other users.
Please login to submit your explanation
You can check your performance of this question after Login/SignupLogin
The two main types of polymorphism are run-time (implemented as inheritance and virtual functions), and compile-time (implemented as templates)
C++ supports 3 types of polymorphism
1) ad-hoc polymorphism
2) parametric polymorphism
3) subtype polymorphism
The types of arguments are different.
The order of argument is different.
The number of argument is same.
Both A and B.
--Same function name
--different return type
--different number of arguments
--different order of arguments
--different types of arguments
as same as Data hiding
waiting until compile time to determine which function to call
waiting until runtime to determine which function to call
None of the above
Public data members
Private data members
Protected data members
It speeds up execution.
It slows down execution.
It increases the code size.
Both A and C.
Friend function can access public data members of the class.
Friend function can access protected data members of the class.
Friend function can access private data members of the class.
All of the above.
Please login to report
Login/Signup to comment