Object Oriented Programming Interview Questions - Oops Interview

What are the basic concepts of OOP?

The four basic concepts of OOP are:
a.) Abstraction
b.) Polymorphism
c.) Inheritance
d.) Encapsulation

What is dynamic or run time polymorphism?

- It is also referred to as method overriding. Here, there can be two methods with same name and signature but different implementation.
- The function here is resolved during run time rather than compile time.

What is Encapsulation?

- It is a technique to hide the properties and behaviours of an object.
- The access is provided only as required.
- It prevents other objects from altering or accessing the properties of an encapsulated object.

Differentiate between abstraction and encapsulation.

- Abstraction is design oriented while abstraction is implementation oriented.

- The focus of abstraction is on the interface i.e. the outside view of the object while encapsulation prevents other objects or methods from looking into the properties and behaviour of that object.

What is Inheritance?

- It is the process which allows the objects of one class to acquire the properties of objects of another class.
- The class that inherits is called sub-class while the class from which the object is inherited is called superclass.
- Inheritance helps in re-using the code and polymorphism.

Explain method overriding.

- When a subclass declares a method possessing similar arguments as a method declared by one of its superclass, method overriding takes place.
- Using this technique, the behaviour specific to a particular subclass can be defined.
- The methods marked public, final or static can not be overridden

Can you give some examples of tokens?

Some of the examples of tokens are:
- Keywords,
- Identifiers,
- Constants,
- Operators,
- Brackets,
- Commas.

What is friend function?

- Friend function is a friend of a class.
- It is allowed to access Public, private or protected data of that class.
- It can be declared anywhere in the class declaration
- It doesn’t have any effect of access control keywords like private, public or protected.

Define Modularity?

- It is the property of big a system divided into small modules which can be integrated as per the requirement.

Explain: a.) Persistence. b.) Colloboration

a.) Persistence.
- It is the property of an object which extends its existence into space and time.

b.) Colloboration
- Process by which several objects co-operate to deliver a higher level result.
1 2 3 4

What is OOP?
The object oriented programming is commonly known as OOP. Most of the languages are developed using OOP concept.......
Various elements of Oops
Various elements of OOP are: Object, Class, Method......
Characteristics of Object Oriented programming language - oops
Some key features of the Object Oriented programming are: Emphasis on data rather than procedure, Programs are divided into entities known as objects.......
Post your comment
Discussion Board
Possible mistake in answer to OO concepts, question 4. "Differentiate between abstraction and encapsulation" .
Hi

I believe a mistake has been made in the first part of the answer to the question below.

4. Differentiate between abstraction and encapsulation.

- Abstraction is design oriented while abstraction is implementation oriented.

I think the intended statement was;

- Abstraction is design oriented while encapsulation is implementation oriented.

Note:

Could this be corrected, to save anyone confusion.
James McLarnon 07-10-2015
Oops interview questions
http://net-informations.com/faq/oops/oops.htm
bradnywells 01-12-2015
OOP Interview Questions
Visit the following link to learn some commonly asked Interview Questions for the job or vacancy of Software Engineer or Software/Web/Desktop Application Developer. It also includes OOP, C#, ASP.NET, ADO.NET and SQL Interview Questions.

http://sohaiby.blogspot.com/2013/09/software-engineerdeveloper-interview.html
sohaib 10-12-2013
.net
what is oops in .net and pyiur defination plzzzz...
dinkal patel 04-17-2012
.net
what is oops in .net and pyiur defination plzzzz...
dinkal patel 04-17-2012
.net
what is oops in .net and pyiur defination plzzzz...
dinkal patel 04-17-2012
.net
what is oops in .net and pyiur defination plzzzz...
dinkal patel 04-17-2012