Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

Topic :: Destructor





Destructor Interview Questions
Questions Answers Views Company eMail

Does c# supports destructors?

Choice Solutions,

9 14920

Destruction of forests leads to (1) Loss of vegetation (2) Soil erosion (3) Loss of minerals (4) Less rainfall

1 3107

The destruction of the Mauryan Empire was followed by a series of invasions, and the first to invade India were the 1 Bactrian-Greeks 2 Parthians 3 Kushanas 4 Shakas

1 5794

Why would you make a destructor virtual?

Lehman Brothers,

3 8967

why destructor is not over loaded?

5 18827

What is the purpose of destructor ?

2 5919

what is virtual destructor

L&T, TCS,

7 12613

Where CANNOT Destructors be implemented ?

3 18677

Difference between dispose and destructor?

TCS,

3 12822

what are constructors and destructors?

Six Sigma,

2094

what are constructors and destructors

Six Sigma,

1 6019

how will you do destructive read and non destructive read in data queue.....

CTS,

2065

destructor, Dispose, Finalize - How they relate to each other

Synechron,

1 5800

How u call destructor and dispose methode in c#.NET

1 8033

Always declare destructors to be virtual"?????? why this is so needed?????

TCL,

2056




Related Topics


Un-Answered Questions { Destructor }

Does .net supports destructors concept?

2020


Question In a class, there is a reference or pointer of an object of another class embedded, and the memory is either allocated or assigned to the new object created for this class. In the constructor, parameters are passed to initialize the data members and the embedded object reference to get inialized. What measures or design change should be advised for proper destruction and avioding memory leaks, getting pointers dangling for the embedded object memory allocation? Please suggest. Question Submitted By :: Sunil Kumar I also faced this Question!! Rank Answer Posted By Re: In a class, there is a reference or pointer of an object of another class embedded, and the memory is either allocated or assigned to the new object created for this class. In the constructor, parameters are passed to initialize the data members and the embedded object reference to get inialized. What measures or design change should be advised for proper destruction and avioding memory leaks, getting pointers dangling for the embedded object memory allocation? Please suggest. Answer # 1 use copy constructors 0 Shanthila There is something to be taken care in destructor, in copy constructor, suppose the memory is assigned to the embedded member object pointer with the parameter passed value, but if some other objects of different class also are pointing to this memory, then if some one deletes the object then this class member pointer object will become dangling, or if the object is not deleted properly then there will be memory leak. Please suggest the design change required to handle or avoid this situation

2073


what are constructors and destructors?

2094


what mean void creat_object?in public class in this code class A{ public: int x; A(){ cout << endl<< "Constructor A";} ~A(){ cout << endl<< "Destructor A, x is\t"<< x;} }; void create_object(); void main() { A a; a.x=10; { A c; c.x=20; } create_object(); } void create_object() { A b; b.x=30; }

2531


Always declare destructors to be virtual"?????? why this is so needed?????

2056


Why is it so that we can have virtual constructors but we cannot have virtual destructors?

4813


what is the difference between C and C++? what is the difference between scanf and gets? what is mean by extern what is the use of it? what will happen if i say delete this> Difference between C structure and C++ structure? What is the difference between overloading and overridding? Explain the need for "virtual Destructor" Can we have "virtual Constructors"? What is the different types of polymorphism> What is virtual functions? How to implement virtual function in "C"? What are the different types of storage classes?

2127


There are two base class B1,B2 and there is one class D which is derived from both classes, Explain the flow of calling constructors and destructors when an object of derived class is instantiated.

1926


Why are the destructors for base class and derived class called in reverse order when the program exits

2129


Destructors CANNOT be implemented in which one of the following?

5833


write a C++ program for booking using constructor and destructor.

2497


What happens if an exception is throws from an object's destructor?

988


what is a destructor?

944


What are virtual destructors?

901


What is the purpose of a constructor? Destructor?

1085