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...



Programming Languages Interview Questions
Questions Answers Views Company eMail

What is htmlspecialchars?

998

Do you need classes in python?

877

What is proxy object in python?

1016

Why everything in python is an object?

964

What is __ init __( self in python?

1008

What is anaconda python used for?

1059

What is python metaclass?

1130

What is super () __ init__ in python?

1032

What is lambda in python 3?

855

What is abstract class in python?

835

Is python good for oop?

867

What is a static method in python?

1048

What should I make with python?

873

What are class methods in python?

885

What is object () in python?

911


Un-Answered Questions { Programming Languages }

What is the difference between array and pointer?

1047


Differentiate between split(), sub(), and subn() methods of the re module?

976


What are the features available in kotlin but not in java?

207


What is the function in r?

107


What does addslashes do in php?

1070


How do I login to my joomla site?

137


'Interface mismatch. Engine version different' . what does this error indicates?

2663


Explain how to list all routes in laravel?

831


Why is python oop?

829


What is pluck method in laravel?

821


What is the latest version of php?

1062


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

2152


What’s the difference between raw_input() and input() in python3.x?

962


What is syntax like in go?

1


How is it possible to return a value from a function?

1037