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 :: Class





Class Interview Questions
Questions Answers Views Company eMail

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.

GE,

5 8524

What is the meaning of Generate Asset Classes From GL Accounts. Kindly can any one tell me what is the meaning of this in detail.

2239

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

TCS,

2148

what is the size of this class class size { public: char data1; double d; int data2; char data3; double data4; short data5; }; please explain the padding for these double variables.

9 11571

Expain Equivalence Class Partion with an Example?

McAfee,

5 16392

how to write a Classical batch input program using transaction FK01 to create vendor/change the vendor address into R/3 system. (Call Transaction Method) plz mention the detail coding Tahnks, Rahul

TCS,

1 7073

What is the reason behind reclassifying payables & receivables as FI month end activity?

IBM,

3 17887

what is the use of abstract class?

Amdocs, Atos Origin, Invictus,

3 7744

what is the use of abstract class and interface with example?

Cycore, DNS, Technoram,

2 14640

what is a virtual class?

Cap Gemini, IBM, Infosys, Trinity Technologies,

5 14937

How to do sorting in classical report?

TCS,

1 6079

what is abstract class ? when is used in real time ? give a exp

5 20160

what is wrapper class and its uses?

2 7043

watz the difference between abstract class and interface? Which one u ill choose as a designer?

Sonata,

1 5406

Which all r Final classes in java except string?

HCL,

5 34580




Un-Answered Questions { Class }

Can you give names of Container classes?

2322


What is the SimpleTimeZone class?

2294


Highest level event class of the event-delegation model?

4023


Name the class that is used to bind the server object with RMI Registry?

2186


What class is used to create Server side object ?

2270


What are the steps to create classes?

2176


Tell me the Importent classes in net package?

2014


What are the scope of the class?

2022


You been asked to prepare a training class for completing expense statements. What points will you emphasize to insure accurate expense statements are submitted?

2321


what is the basic difference in the formation of spores in subclasses basidiomycetes and ascomycetes?

2342


how we can know the funcions available in a class recording java?

2248


Difference between Class Module and Standard Module?

2643


How would you create properties by using class Builder Wizard?

2007


Can DES be used to protect classified information?

1777


A table is classified as a parent table and you want to drop and re-create it. How would you do this without affecting the children tables?

2527