what is virtual function?
Answer Posted / bhupendra more
A function qualified by the virtual keyword. When a virtual
is called via a pointer,the class of the object pointed to
determine which function definition will be used. Virtual
function implement polymorphism. whereby objects belonging
to different classes can respond to the same massage in
different way.
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
What are the advantages of polymorphism?
What is the difference between a constructor and a destructor?
Write a program to sort the number with different sorts in one program ??
What are different oops concepts?
Why is object oriented programming so hard?
What is abstraction with example?
What is oops with example?
class CTest { public: void someMethod() { int nCount = 0; cout << "This is some method --> " << nCount; } }; int main() { CTest *pctest; pctest->someMethod(); return 0; } It will executes the someMethod() and displays the value too. how is it possible with our creating memory for the class . i think iam not creating object for the class. Thanks in Advance... Prakash
Describe these concepts: Polymorphism, Inheritance and Abstraction.
What is abstraction oop?
what type of question are asked in thoughtworks pair programming round ?
What is the purpose of polymorphism?
What is solid in oops?
What language is oop?
Why is polymorphism used?