what is the difference between virtual function and
destoctor?
Answer Posted / 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 |
Post New Answer View All Answers
What does and I oop mean in text?
Can you explain polymorphism?
What is the difference between a mixin and inheritance?
Why is there no multiple inheritance?
What is abstraction oop?
What is abstraction encapsulation?
Please send ford technologies placement paper 2 my mail id
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.
How Do you Code Composition and Aggregation in C++ ?
Can destructor be overloaded?
Why do we use encapsulation in oops?
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(); }
Can static class have constructor?
What are the types of abstraction?
What is the purpose of polymorphism?