OOPS Interview Questions
Questions Answers Views Company eMail

What is OOPS and How it is different from Procedural Programming ?

HP, Infosys, Thyrocare,

23 65723

what is meant by files?

Infosys,

4 8575

is java purely oop Language?

HCL, Infosys, TCS,

49 47995


What is Object and Class? What are the differences between them?

5 9119

What is Inheritance, Multiple Inheritance, Shared and Repeatable Inheritance?

Accenture, L&T,

4 18556

What is Method overloading?

5 8141

Can we call a base class method without creating instance?

6 21170

In which cases you use override and new base?

2 6483

You have one base class virtual function how will call that function from derived class?

4 7689

In which Scenario you will go for Interface or Abstract Class?

InfoAxon Technologies,

1 9722

polymorphism means?

BFL,

6 11649

Describe the difference between a Thread and a Process?

Siebel Systems,

11 29119

Describe what an Interface is and how it?s different from a Class.

Spinsys,

7 20797

What is the difference between XML Web Services using ASMX and .NET Remoting using SOAP?

1 7840


Post New OOPS Questions

Un-Answered Questions { OOPS }

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

1654


What is the importance of oop?

602


i got a backdoor offer in process global,Bangalore..Can i work with it?

2316


Question: Implement a base class Appointment and derived classes Onetime, Daily, Weekly, and Monthly. An appointment has a description (for example, “see the dentist”) and a date and time. Write a virtual function occurs_on(int year, int month, int day) that checks whether the appointment occurs on that date. For example, for a monthly appointment, you must check whether the day of the month matches. Then fill a vector of Appointment* with a mixture of appointments. Have the user enter a date and print out all appointments that happen on that date.

621


What is oops in programming?

558






What is the highest level of cohesion?

566


any one please tell me the purpose of operator overloading

1959


write a program to find 2^n+1 ?

1540


What is the main purpose of inheritance law?

662


Can abstract class have normal methods?

600


is there any choice in opting subjects like 4 out of 7

1723


What is encapsulation in ict?

595


What is this pointer in oop?

544


Can we override main method?

595


What is overloading in oop?

567