What is virtual Function.
Answer / poonam
Virtual function is a function that uses keyword "virtual"
with the datatype of the function. When the base class as
well as the derived class contains a function both having
the same name, just to resolve ambiguity and copy of the
same data again and again we use the keyword "virtual"
preeceeding it. It is used to achieve poymorphism.
| Is This Answer Correct ? | 7 Yes | 0 No |
design a c++ class for the chess board,provide a c++ class definition for such class(only class definition is required)
What is abstraction encapsulation?
who is the father of OPPS
How Do you Code Composition and Aggregation in C++ ?
Why is polymorphism used?
What are the main differences between procedure oriented languages and object oriented languages?
9 Answers IBM, Infosys, Wipro,
Whats is abstraction in oops?
What is for loop and its syntax?
What is encapsulation with example?
what is static?
what is new modifier in C#
what is meant by files?