ALLInterview.com :: Home Page      
 Advertise your Business Here     
Browse  |   Placement Papers  |   Company  |   Code Snippets  |   Certifications  |   Visa Questions
Post Question  |   Post Answer  |   My Panel  |   Search  |   Articles  |   Topics  |   Errors
   Testimonials Refer this Site  Refer This Site to Your Friends  Site Map  Contact Us      
   
 
 Categories >> Software >> Programming Languages >> C++ >> OOPS
 
Suggest New Category 
 


 

Question Asked @ Answers Views     Select
what is the difference between virtual function and destoctor?    1  1019
what is code for call by value and call by reference?    1  1221
Iam doing my project on instant messaging , if you any new ideas regarding this project ,please suggest it?    2  504
Write an operator overloading program to write S3+=S2.    2  953
Write A Program using Single and Multiple Inheritance.    1  733
Write A Program to find the ambiguities in Multiple Inheritance? How are they resolved.(Virtual Functions) accenture   0  706
WAP to find the ambiguities in Multiple Inheritance? How are they resolved.(Virtual Functions)    1  1074
Write an operator overloading program to Overload ‘>’ operator so as to find greater among two instances of the class.    1  998
Define a class to represent a bank account. Include the following members: Data Members: Name of the Depositor Account Number Type of Account Balance amount in the account Member Functions: To assign the initial values. To deposit an account. To withdraw an amount after checking the balance. Write a C++ main program to display account number, name and balance.    3  10418
what is the use of classes in c++; hcl   2  1927
tel me oops defination in single line    2  1698
WHAT IS THE ACTUAL DEFINATION OF OBJECT AND THE CLASS IN ONE SINGLE LINE WHICH THE INTERVIEWER WANT TO LISTEN.    11  2070
what is the difference between javap and jad utility wipro   1  1634
can we create and enter the data & hide files using programmes ? wipro   2  1161
what isthe difference between c structure and c++ class    5  1606
E-Mail New Answers        Answer Selected Questions        Post New oops Questions
Prev    1   ... 4   ... 7   ... 10   ... 13   ... 16    18   [19]    20  ... 22   ... 25   ... 28   ... 31   ... 34   ... 37    Next
 
 
 
 
 
Un-Answered Questions
 
 Question Views   Select
 
write a programe to calculate the simple intrest and compund intrest using by function overlading 258
what is the drawback of classical methods in oops? 753
Is this job good for future? can do this job post grduate student? 219
What is nutshell in programming language? 2188
when to use 'mutable' keyword and when to use 'const cast' in c++ 211
what is difference between class template and template class? 39
Write a C++ program without using any loop (if, for, while etc) to print prime numbers from 1 to 100 and 100 to 1 (Do not use 200 print statements!!!) 370
why reinterpret cast is considered dangerous? 147
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? 158
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 321
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? 349
2. Give the different notations for the class.\ 219
define oops concept with example 231
what type of questions 199
Following are the class specifications: class {int a}; class {int b}; Using friend funtion,calculate the max of two objects and display it. 39
E-Mail New Answers        Answer Selected Questions