what is virtual function?
Answers were Sorted based on User's Feedback
Answer / bhupendra singh
virtual function can be used to override the propertis of a
function.it is part of polymerphism.it is normaly used in inheritance.
| Is This Answer Correct ? | 0 Yes | 0 No |
Answer / prashant kalmodiya
VIRTUAL FUNCTION ensures that correct function get called
at runtime
| Is This Answer Correct ? | 3 Yes | 4 No |
Answer / sandeep kumar
a virtual function is a member function that you expect to be redefined in derived class when you refer to a derived class object using a pointer or a reference to the base class, you can call a virtual function for the object and executes the derived class version of the function
| Is This Answer Correct ? | 0 Yes | 1 No |
Answer / 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 |
Answer / ori
(this answer is more - a "use of virtual function")
One Important use of virtual function is - Aggregation of
object related to derivation class hirarcy, in to an other
class , by defining a pointer to the base class (of
hirarchy) as one of the member objects of the other class.
| Is This Answer Correct ? | 2 Yes | 5 No |
Answer / varsha vilas kalebag
virtual function is ended with null
virtual function=o
| Is This Answer Correct ? | 26 Yes | 132 No |
why to use template classes in c++?
What is an interface in oop?
What are properties in oop?
What is the difference between procedural programming and oops?
What is abstrac class?where is it use?
What are the benefits of polymorphism?
Why can't we have instance(stack) of a class as a member of the same class like eg.Class A{A obj;} as we can have self refential pointer
I am developing a payroll system mini project.I used file concept in program for reading and writing.When the program is reloading into the memory that is if i execute next time the file was cleaned and adding data from the starting this is my problem.I want to strore the previous data and if i want to add any record that should be next of previous data.Please help me.
What is the advantage of oop over procedural language?
Which is not an object oriented programming language?
define a string class. overload the operator == to compare two strings
2 Answers Birla, Ericsson, HCL, Infosys, Infotech, MCAS, Satyam,
Hi friends I have experience of 6 months in website design and maintanence. Now i am looking for other IT jobs.. to switch platform. please post any interview you know in chennai.