what is the difference between virtual function and
destoctor?
Answer / prabhakar
virtual function is just like a member function of a class.it is used to over loading mechanisam.it can be acesses by any object of either base class or derived class.
destructor is used to dellocate the memory of an object.it can call by using delete operator.
| Is This Answer Correct ? | 3 Yes | 0 No |
WAP to find the ambiguities in Multiple Inheritance? How are they resolved.(Virtual Functions)
what is virtual function?
Why is oop useful?
What is an example of genetic polymorphism?
What is meant by multiple inheritance?
What are the three main types of variables?
what is polymorpsim? what are its types?
Is abstract thinking intelligence?
char* ptr = "Rahul"; *ptr++; printf("%s",ptr); What will be the output
What is the difference between Home and $Home?
diff between Virtual mathod and abstract method?
Why is there no multiple inheritance?