what is virtual function?
Answers were Sorted based on User's Feedback
Answer / ravi
Virtual function is a member function of a class.whose
functionality can be overridden in is derived class.
| Is This Answer Correct ? | 9 Yes | 1 No |
Answer / p.kumarasamy,be(cse)
C++ virtual function is a member function of a class, whose
functionality can be over-ridden in its derived classes. The
whole function body can be replaced with a new set of
implementation in the derived class. The concept of c++
virtual functions is different from C++ Function overloading.
C++ Virtual Function - Properties:
C++ virtual function is,
* A member function of a class
* Declared with virtual keyword
* Usually has a different functionality in the derived class
* A function call is resolved at run-time
| Is This Answer Correct ? | 4 Yes | 1 No |
Answer / brunda r
Virtual functions are the functions declared as normal
function call but preceeded by keyword 'virtual'.Its value is
equated to zero and its definition is incomplete or
blank.Virtual functions is dynamic polymorphism.
| Is This Answer Correct ? | 1 Yes | 2 No |
What is abstrac class?where is it use?
why oops need in programming
why c++ is a highlevel language
3 Answers Satyam, Tech Mahindra,
What are main features of oop?
What is the diamond problem in inheritance?
how do you handle yourself when you feel the wald is aganist you
Contrast OOP and SOA. What are tenets of each?
1 Answers Siebel Systems, Wipro,
What is the expansion of OOPS?
WAP to generate 2n+1 lines of the following pattern on the computer screen:
What is encapsulation in oop?
What is polymorphism and its types?
When a private constructer is being inherited from one class to another class and when the object is instantiated is the space reserved for this private variable in the memory??