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 |
when my application exe is running nad i don't want to create another exe what should i do
What is Inheritance, Multiple Inheritance, Shared and Repeatable Inheritance?
difine hierarchical inheritance.
How can you overcome the diamond problem in inheritance?
Why do we use virtual functions?
What are the benefits of oop?
is java purely oop Language?
49 Answers HCL, Infosys, TCS,
Program to open a file with First argument
What is encapsulation in ict?
What is Difference Between Inheritance and creating object and getting data? means Class A extends B{ B.getMethod();} (OR) Class A{ b obj=new B(); obj.getMethod(); }
what is function overloading..?
advantage and disadvantage in c++>>oops and what are the questions ask for interview in c++>>oops. could you tell me or reply me