why overriding?

Answer Posted / vic

To elaborate on Ejaz's answer, the run time determination
will only happen if the functions being called were declared
as being virtual.

If they weren't, then the function to be called will be
determined at compile time according to the object type.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why is it so that we can have virtual constructors but we cannot have virtual destructors?

3835


What is encapsulation in ict?

608


write a program to find 2^n+1 ?

1549


Describe these concepts: Polymorphism, Inheritance and Abstraction.

612


What is abstract class in oops?

600






What is polymorphism explain its types?

681


Why we use classes in oop?

581


Can a destructor be called directly?

600


What is overloading in oop?

576


What is oops in programming?

567


program for insertion ,deletion,sorting in double link list

2280


What is the purpose of enum?

581


What are oops functions?

583


What is coupling in oops?

595


write a code for this:trailer recordId contains a value other than 99, then the file must error with the reason ‘Invalid RECORD_ID’(User Defined Exception).

1641