Series: Subject: Topic:

OOPS Interview Questions

Showing Questions 1 - 20 of 85 Questions
First | Prev | | Next | Last Page
Sort by: 

What is overloading at oop ?

Asked By: dipak43 | Asked On: May 21st, 2012

Answered by: chitra on: Oct 2nd, 2013

Overloading means assigning different meaning to an operator,depending on the context.c++ permits overloading of operator thus allowing us to assign multiple meaning to an operator.

Answered by: sugumar on: Jul 10th, 2013

the overloading is mainly defined as same function name and different parameter . its called as overloading

How do you differentiate between a constructor and normal function?

Asked By: ykbharat | Asked On: Mar 13th, 2007

Answered by: shamshadali on: Sep 9th, 2013

Compare normal function and constructor

Answered by: christia on: May 2nd, 2007

A constructor is a member function of a class that is used to create objects of that class. It has the same name as the class itself, has no return type, and is invoked using the new operator. An ordi...

Difference between object-oriented programming and procedure oriented programming

Asked By: Manpreet Kaur | Asked On: Oct 24th, 2006

Answered by: chaitanya on: Jul 3rd, 2013

In procedure oriented programming more emphasis is given to code rather to data.The given large program is divided in to a number of functions.Those functions are again dived in to sub-functions and s...

Answered by: shalini on: May 10th, 2012

the main difference b/w pop and oops is ...

pop is based on function and oops is based on classes and objects.

What is the difference between implicit function & explicit function.

Asked By: nameetapani | Asked On: Jul 25th, 2007

Answered by: qaisar badshah on: Mar 22nd, 2013

is the equation of circle is explicit function or not

Answered by: Sandhya.Kishan on: Jun 13th, 2012

A function in which the dependent variable has not been given in terms of the independent variable is known as implicit function.Ex: 2x-y = 3 A function which determines the output value in terms o...

What is OOPS?

Asked By: Interview Candidate | Asked On: Jul 19th, 2005

Oop is the common abbreviation for object-oriented programming. 

Star Read Best Answer

Editorial / Best Answer

Answered by: shahistha

Answered On : Dec 5th, 2005

OOPs is an Object Oriented Programming language,which is the extension of Procedure Oriented Programming language.OOps reduce the code of the program because of the extensive feature of Polymorphism.OOps have many properties such as DataHiding,Inheritence,Data Absraction,Data Encapsulation and many more.

Answered by: pooja odhekar on: Feb 28th, 2013

OOPS provides features like polymorphism, inheritance, abstraction.

Answered by: K SURESH on: Feb 18th, 2013

OOPS is abbreviated as Object Oriented Programming system in which programs are considered as a collection of objects. Each object is nothing but an instance of a class. Class is a collection of the o...

How can recover the memory

Asked By: sansiya.hemant7 | Asked On: Aug 23rd, 2011

Answered by: Nitin Havaldar on: Dec 23rd, 2012

in oops memory is released through garbage collection. it will check which objects are not reachable by any part of the code then it will release that object and optimize the memory location for newly created objects.

Function and method differences

Asked By: Anood Hamadeen | Asked On: Aug 3rd, 2012

What is the difference between function and method in c, objective c, and Java?

Answered by: anil on: Nov 23rd, 2012

Functions have independent existence means they are defined outside of the class e.g. in C main() is a function while methods do not have independent existence they are always defined inside class e.g. main() in Java is called method.

What are the types of polymorphism ?

Asked By: rekhaty | Asked On: May 25th, 2012

Answered by: Sirsat Manisha on: Oct 31st, 2012

There are two types of polymorphism. 1. compile time polymorphism 2. Run time polymorphism Compile time polymorphism is also called as "Static polymorphism" or it is referred as "Early binding" Compil...

Answered by: naresh on: Aug 27th, 2012

There are two types of polymorphism 1. Dynamic polymorphism 2. Static polymorphism The polymorphism that can be occur at run time is called dynamic polymorphism. This means that when we call the met...

What is factory class?

Asked By: ashray | Asked On: May 25th, 2007

Answered by: Sandhya.Kishan on: Jun 13th, 2012

It is a class which provide an interface for creating families of related objects.It encapsulate the logic which helps to decide which subclass should be instantiated and hence removes this decision f...

Answered by: 00elton00 on: Aug 4th, 2007

A Factory class is one that is used to return instances of other classes. This is generally used in the context of Factory Design Pattern.

Which languages are included in object based languages other than vb and Java script

Asked By: manoj | Asked On: Feb 21st, 2007

Answered by: Sandhya.Kishan on: Jun 13th, 2012

Object-oriented languages include Simula, Smalltalk, C++, Eiffel, Python, Ruby, C# and REALbasic other than Vb and java script.

Answered by: harpreet sran on: Nov 15th, 2007

other object oriented languages are c++ & simula 67

What are 4 member function for each object in c++.

Asked By: vijay sagar | Asked On: Aug 15th, 2011

Each C++ object possesses the 4 member fns, what are those 4 member functions.Please tell me what I s the answer for this question.

Answered by: Sandhya.Kishan on: Jun 13th, 2012

Each C++ object has constructor,default constructor,copy constructor and destructor as the member functions.

Answered by: ABC on: Aug 24th, 2011

Following are four default functions available for each object
1) constructor
2) destructor
3) copy constructor
4) assignment operator

Pure virtual functions

Asked By: Gaurav_soni | Asked On: Jul 17th, 2009

How can you make a class as interface, if you cannot add any pure virtual function?

Answered by: Sandhya.Kishan on: Jun 13th, 2012

By putting a virtual destructor inside an interface makes a class an interface.

Answered by: sangeeta on: Feb 21st, 2012

Add pure virtual destructor in that class

What is the difference between encapsulation and datahiding.Explain with example

Asked By: ramaprasad | Asked On: Nov 2nd, 2005

Answered by: prabhjot kaur on: May 12th, 2012

encapsulation is the wrapping up of data members and data functions into a single unit like classes. here we can control the visibility of data with the help of access specifiers i.e. public,private and protected.
in data hiding data is totally private we cannot access the data.

Answered by: shrimanta on: Mar 14th, 2012

encapsulation is the concept of the datamember. Data Hiding is the Access Specifier.

What do you mean by package access modifier?

Asked By: neven | Asked On: Nov 12th, 2011

Answered by: Sandhya.Kishan on: Mar 10th, 2012

Access modifier are used to implement encapsulation feature of oops.There are 3 access specifiers namely Private: The current class will have access to the field or method. Protected - The current cl...

What are data model and class model in object oriented approach specially in c++?

Asked By: Rahul | Asked On: Aug 20th, 2007

Answered by: Sandhya.Kishan on: Mar 10th, 2012

Data model is an abstract model which describes the representation and usage of data.In oops context data are modeled as units of objects and data model represents the logical organization of real wor...

How round robin algorithm works ?

Asked By: kirankumar samudrala | Asked On: Apr 16th, 2011

Answered by: Sandhya.Kishan on: Mar 10th, 2012

In round robin algorithm time slices are assigned to each process in equal portions and in circular order, handling all processes without priority. Round-robin scheduling is simple, easy to implement,...

Sigbus error ?

Asked By: naani.mahesh | Asked On: Oct 19th, 2011

What is sigbus error

Answered by: Sandhya.Kishan on: Mar 10th, 2012

When a bus error occurs a signal is sent to the processor called as sigbus signal.The constant for sigbus is defined in header file signal.h.Sigbus error is thrown when there is improper memory handling.

Compile time overloading

Asked By: hellzangel_11 | Asked On: Aug 14th, 2010

What is the requirement of compile time overloading?

Answered by: Praveen on: Jan 16th, 2012

We know that because of polymorphism, we can declare any number of function with change in signature. Signature considers three parts 1. No.of parameters 2. Type of parameters 3. Order of parameters...

Answered by: pvernekar on: Nov 14th, 2010

Method with the same name, same or different return type and difference in the parameters either in number or type

Is it possible for two classes to inherit from each other

Asked By: mahmoud taha | Asked On: May 8th, 2011

Answered by: Praveen on: Jan 16th, 2012

No, it is not possible. One of the reasons is stated below.

In inheritance, if we create an object to child class, the base class constructor is by default called in derived class constructor as the first statement. Since there is cyclic dependency it will go into infinite loop.

Answered by: shivaramag on: Aug 4th, 2011

No it is not possible. compile time error is thrown

Circular base class dependency involving 'x' and 'y'

x & y are classes derived from each other.

First | Prev | | Next | Last Page





twitter fb Linkedin GPlus RSS


Interview Question

 Ask Interview Question?


Latest Questions

Interview & Career Tips

Get invaluable Interview and Career Tips delivered directly to your inbox. Get your news alert set up today, Once you confirm your Email subscription, you will be able to download Job Inteview Questions Ebook . Please contact me if you there is any issue with the download.