OOPS Interview Questions
Questions Answers Views Company eMail

Plese get me a perfect C++ program for railway/airway reservation with all details.

ITM,

2355

Get me an image implementation program.

531

Prepare me a program for the animation of train

947

Write a program to get the binary tree.

ABC,

2 2620

What do you mean by stack program? Get me an example stack program?

4 6064

Get me a number puzzle game-program

593

what is oops

DELL,

4 3567

What is data binding?

4 15308

define oops with class and object

HCL, Tech Mahindra,

5 5394

why oops need in programming

TCS,

7 14344

1. Strong name 2. how to prevent a class from being inherited 3. delegates 4. default modifier for interface 5. default modifier for class 6. base class for exception 7. diff bet trigger and view in sql 8. how to exchange values from one page to another page 9. can multiple catch block ll be executed at same time 10. can u store different data types in an array & array list 11. when we ll use trigger 12. try,catch,finally usage

2 2123

what is difference between c++ language and java language

5 3170

What is the main difference between C++ and Java

TCS,

11 8556

I hv a same function name,arguments in both base class and dervied class, but the return type is different. Can we call this as a function overloading? Explain?

3 2469

what are the realtime excercises in C++?

IBM, Wipro,

1228


Post New OOPS Questions


Un-Answered Questions { OOPS }

Why is it so that we can have virtual constructors but we cannot have virtual destructors?

1772


diff between Virtual mathod and abstract method?

1110


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

587


INSTANCE FIELDS DECLARED private ARE ACCESSIBLE BY THE METHODS ONLY.CAN WE CHANGE THE private FIELD OF AN OBJECT IN A METHOD OF SOME OTHER OBJECT OF THE SAME CLASS?

536


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

644


what is the sylabus for priliminaries?

592


Plese get me a perfect C++ program for railway/airway reservation with all details.

2355


can we make game by using c

1517


what are the realtime excercises in C++?

1228


What is the renewal class?

1095


what is the drawback of classical methods in oops?

1809


Prepare me a program for the animation of train

947


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(); }

923


Write a java applet that computes and displays the squares of values between 25 and 1 inclusive and displays them in a TextArea box

928


Will I be able to get a picture in D drive to the c++ program? If so, help me out?

662