what is virtual function?
Answer Posted / susanta samal
virtual function is used to prevent from more times
calling.That means if a function is declared as virtual
then its def will be diferent in base class & derived class
| Is This Answer Correct ? | 4 Yes | 7 No |
Post New Answer View All Answers
How Do you Code Composition and Aggregation in C++ ?
How to call a non virtual function in the derived class by using base class pointer
write string class as your own class in java without using any built-in function
Give an example where we have to specifically use C programming language and C++ programming language cannot be used?
How many human genes are polymorphic?
How do you achieve runtime polymorphism?
What is the significance of classes in oop?
Can you inherit a private class?
Is data hiding and abstraction same?
What type of loop is a for loop?
What is encapsulation oop?
Why multiple inheritance is not possible?
What is encapsulation with example?
What does sksksk mean in text slang?
They started with the brief introduction followed by few basic C++ questions on polumorphism, inheritance and then virtual functions. What is polymorphims? How you will access polymorphic functions in C? How virtual function mechanism works?