Answer Posted / gyana
In c# we cannot over load the desructor as because
destructor is presented by defaultly in c# and we cannot
create any object of it.we cannot also define a new
desructor.It cannot be explicitly used.for this reason we
cannot invoke the desructor and it cannot be overloaded..
| Is This Answer Correct ? | 3 Yes | 1 No |
Post New Answer View All Answers
class CTest { public: void someMethod() { int nCount = 0; cout << "This is some method --> " << nCount; } }; int main() { CTest *pctest; pctest->someMethod(); return 0; } It will executes the someMethod() and displays the value too. how is it possible with our creating memory for the class . i think iam not creating object for the class. Thanks in Advance... Prakash
Will I be able to get a picture in D drive to the c++ program? If so, help me out?
IS IT NECESSARY TO INITIALIZE VARIABLE? WHAT IF THE INSTANCE VARIABLE IS DECLARED final ? IS IT NECESSARY TO INITIALIZE THE final VARIABLE AT THE TIME OF THEIR DECLARATION?
What is a class in oop?
Templates mean
what's the basic's in dot net
What is the benefit of oop?
What is the difference between abstraction and polymorphism?
Why is object oriented programming so hard?
What is encapsulation in oops?
What is the significance of classes in oop?
What is the difference between procedural programming and oops?
What is an interface in oop?
What is difference between polymorphism and inheritance?
What is the example of polymorphism?