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 are different types of JVM's? for example we use dalvik jvm for android then what about the remaining operating systems?    0  19
i=20;k=0; for(j=1;k-i;k+=j<10?4:3) { cout<    0  84
Where You Can Use Interface in your Project    0  124
how many types of notations are in java    0  379
what is the 3 types of system development life cycle    0  1035
what is difference between class template and template class?    0  922
WAP to generate 2n+1 lines of the following pattern on the computer screen:    2  2255
Following are the class specifications: class {int a}; class {int b}; Using friend funtion,calculate the max of two objects and display it.    0  593
What is this interview room ? Is it a class or an object. cybage   3  6509
The type of variable a pointer points to must be the part of pointer's definition so that: infosys   1  1998
OOP'S advantages of inheritance include: infosys   1  2525
How to create a comment page in C #??    2  1713
what is difference between thread and programme. ncc   0  696
can you give the dynamic polymorphism types? wipro   2  12375
what is the new version of c++ ignou   1  2040
E-Mail New Answers        Answer Selected Questions        Post New oops Questions
  Next
 
 
 
 
 
Un-Answered Questions
 
 Question Views   Select
 
Write a program to reverse a string using recursive function? 651
officer say me - i am offered to a smoking , then what can you say 483
what are the realtime excercises in C++? 1139
2. Give the different notations for the class.\ 444
This program numbers the lines found in a text file. Write a program that reads text from a file and outputs each line preceded by a line number. Print the line number right-adjusted in a field of 3 spaces. Follow the line number with a colon, then one space, then the text of the line. You should get a character at a time and write code to ignore leading blanks on each line. You may assume that the lines are short enough to fit within a line on the screen. Otherwise, allow default printer or screen output behavior if the line is too long (i.e., wrap or truncate). A somewhat harder version determines the number of spaces needed in the field for the line numbers by counting lines before processing the lines of the file. This version of the program should insert a new line after the last complete word that will fit within a 72-character line. 533
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(); } 831
#include <string.h> #include <stdio.h> #include <stdlib.h> #include<conio.h> void insert(char *items, int count); int main(void) { char s[255]; printf("Enter a string:"); gets(s); insert(s, strlen(s)); printf("The sorted string is: %s.\n", s); getch(); return 0; } void insert(char *items, int count) { register int a, b; char t; for(a=1; a < count; ++a) { t = items[a]; for(b=a-1; (b >= 0) && (t < items[b]); b--) items[b+1] = items[b]; items[b+1] = t; } } design an algorithm for Insertion Sort 668
What are different types of JVM's? for example we use dalvik jvm for android then what about the remaining operating systems? 19
write a code for this:trailer recordId contains a value other than 99, then the file must error with the reason ‘Invalid RECORD_ID’(User Defined Exception). 596
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 579
can we make game by using c 1261
class type to basic type conversion 732
which feature are not hold visual basic of oop? 559
explain sub-type and sub class? atleast u have differ it into 4 points? 735
design a c++ class for the chess board,provide a c++ class definition for such class(only class definition is required) 3854
E-Mail New Answers        Answer Selected Questions