Answer Posted / safe
an object is destroyed to make memory free which is
allocated by object. it can automatically done by destructor
(default destructor)if we dont call a destructor.
| Is This Answer Correct ? | 4 Yes | 1 No |
Post New Answer View All Answers
What is object in oops?
Can destructor be overloaded?
What is polymorphism explain its types?
Can a varargs method be overloaded?
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(); }
What is difference between oop and pop?
What is destructor example?
What is the difference between a constructor and a destructor?
Can we create object of interface?
Explain virtual inheritance?
What are the two different types of polymorphism?
if i have same function with same number of argument but defined in different files. Now i am adding these two files in a third file and calling this function . which will get called and wht decide the precedence?
What is inheritance and how many types of inheritance?
What is class encapsulation?
design a c++ class for the chess board,provide a c++ class definition for such class(only class definition is required)