Answer Posted / poonam
Virtual function is a function that uses keyword "virtual"
with the datatype of the function. When the base class as
well as the derived class contains a function both having
the same name, just to resolve ambiguity and copy of the
same data again and again we use the keyword "virtual"
preeceeding it. It is used to achieve poymorphism.
Is This Answer Correct ? | 7 Yes | 0 No |
Post New Answer View All Answers
Explain virtual inheritance?
Can we create object of interface?
just right the logic of it 1--> If few people are electing then every time ur candidate should win 2--> arrange books in box, if box carry weight == books weight then take another box..... find the no of box required.
What is overloading in oops?
How to improve object oriented design skills?
Give two or more real cenario of virtual function and vertual object
What language is oop?
How to call a non virtual function in the derived class by using base class pointer
What is destructor example?
Why is polymorphism needed?
Can a varargs method be overloaded?
What is encapsulation selenium?
Can a destructor be called directly?
Prepare me a program for the animation of train
There are two base class B1,B2 and there is one class D which is derived from both classes, Explain the flow of calling constructors and destructors when an object of derived class is instantiated.