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 |
i=20;k=0; for(j=1;k-i;k+=j<10?4:3) { cout<<k; } //please comment on the output
What is encapsulation in ict?
Which language is pure oop?
how much classes are used in c++
WAP to generate 2n+1 lines of the following pattern on the computer screen:
which are the 4 members functions in c++ objects that can either be declared explicitly by programmer or implementation if nt available.
What is difference between new and malloc?
How to create a comment page in C #??
What is overriding in oops?
tell about copy constructor
Why interface is used?
What is the difference between inheritance and polymorphism?