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
how many types of notations are in java    0  146
what is the 3 types of system development life cycle    0  876
what is difference between class template and template class?    0  780
WAP to generate 2n+1 lines of the following pattern on the computer screen:    2  1933
Following are the class specifications: class {int a}; class {int b}; Using friend funtion,calculate the max of two objects and display it.    0  486
What is this interview room ? Is it a class or an object. cybage   3  5383
The type of variable a pointer points to must be the part of pointer's definition so that: infosys   1  1680
OOP'S advantages of inheritance include: infosys   1  2198
How to create a comment page in C #??    2  1360
what is difference between thread and programme. ncc   0  582
can you give the dynamic polymorphism types? wipro   2  12108
what is the new version of c++ ignou   1  1760
what is the new version of oops ignou   0  690
write a C++ program for booking using constructor and destructor. hal   0  638
which is best institute to learn c,c++ in ameerpet hyderabad    1  631
E-Mail New Answers        Answer Selected Questions        Post New oops Questions
  Next
 
 
 
 
 
Un-Answered Questions
 
 Question Views   Select
 
write a program that takes input in digits and display the result in words from 1 to 1000 783
what is difference between class template and template class? 780
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!!!) 545
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 469
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 506
assume the program must insert 4 elements from the key board and then do the following programs.sequential search(search one of the elements),using insertion sort(sort the element) and using selection sort(sort the element). 520
Write a program to reverse a string using recursive function? 590
what is the sylabus for priliminaries? 459
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? 858
write a program to find 2 power of a 5digit number with out using big int and exponent ? 457
what is graphics 764
Get me a number puzzle game-program 478
What is byval and byref? What are differences between them? 410
What is Difference Between Inheritance and creating object and getting data? means Class A extends B{ B.getMethod();} (OR) Class A{ b obj=new B(); obj.getMethod(); } 783
how to find the correct email address format by using the programe? 933
E-Mail New Answers        Answer Selected Questions