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

What is the oops and benefits of oops programming?

544


What is polymorphism and example?

583


What is the difference between encapsulation and polymorphism?

580


Why is destructor used?

574


What is the difference between a mixin and inheritance?

511






What is the difference between procedural programming and oops?

546


What are functions in oop?

576


• What are the desirable attributes for memory managment?

1716


Why do we use oops?

585


What is encapsulation and abstraction? How are they implemented in C++?

628


What is pointer in oop?

528


How do you achieve runtime polymorphism?

562


What is data binding in oops?

574


What is variable example?

590


Can we override main method?

595