FeedBack Form

Your Name :
Your Email :
Your Location :
Your Message :
   
FeedBack

OOPs INTERVIEW QUESTION & ANSWERS

6. What is an Object?
  An object is an instance of a class. Your programs manipulate these objects.
  Posted by Rajareddy. (Mar 18, 2014)
 

Object is instance of a class.instance means allocating sufficent memory for instance variables in a class.

  Posted by Sucharitha. (Dec 19, 2013)
 

An object is a physical representation of a class.

  Posted by Surendra Varma. (May 23, 2013)
 

We have multiple definitions:
1. Class variable is nothing but an object.
(or)
2. An object is an instance of a class. [The process of allocating sufficient memory space for datamembers and method of a class is call instance].

Your Name Your Email-ID
Your Answer
 
7. What is Method overloading?
  Method overloading occurs when a class contains two methods with the same name, but different signatures.
  Posted by Rajareddy. (Mar 18, 2014)
 

Method overloading means having same method name but different method parameters.

  Posted by Karthikeyan. (Oct 07, 2013)
 

The two are more method same name, but different implementation on the same scope (class) is called.

Your Name Your Email-ID
Your Answer
 
8. What is Encapsulation?
  The wrapping up of data and functions into a single unit (called class) is known as encapsulation. Encapsulation containing and hiding information about an object, such as internal data structures and code.
  Posted by Rajeev Kumar. (Apr 30, 2013)
 

Encapsulation is process of integrating data and code into one unit. An object created from a class is an encapsulation of data and code.

Your Name Your Email-ID
Your Answer
 
9. What is a constructor?
  A constructor is a method that defines how to create an object instance. Using the constructor will instantiate an object and make it available to your program.
  Posted by Rajareddy. (Mar 18, 2014)
 

Constructor is a special type of method which is used to inslize values for instances variables.

  Posted by Naga Piyush. (Jan 16, 2014)
 

A constructor is a method which use to initialize the variables of the class. It has no return type and It’s name must be same as class name. Every class have default constructor with no parameter. If any constructor is created then it should be defined after declaration of all variables in the class

  Posted by Naga Jyothi. (Nov 30, 2013)
 

Constructor is a method used to initialize the state of object. Constructor is invoked whenever the object is created Its name is same as class name It does not have any return types.

  Posted by Karthikeyan PK. (Oct 08, 2013)
 

A constructor name must be same as class name. A constructor doesn’t have a return type. A constructor is called automatically when a new instance of an object is created.

Your Name Your Email-ID
Your Answer
 
10. What is Abstraction?
  Hiding the complexity. It is a process of defining communication interface for the functionality and hiding rest of the things.
  Posted by Rajareddy. (Mar 18, 2014)
 

It is a process of abstracting wanted data and leaving unwanted data.

  Posted by Aswini Aluri. (Nov 20, 2013)
 

Hiding the unnecessary details from the view of the users is called abstraction.

For ex:
Car we have break, clutch. break and clutch is hiding here but they are working inside the car.

  Posted by Neelam. (May 21, 2013)
 

Definition of abstraction in simple language... with real life example.

Your Name Your Email-ID
Your Answer