ALLInterview.com :: Home Page            
 Advertise your Business Here     
Browse  |   Placement Papers  |   Company  |   Code Snippets  |   Certifications  |   Visa Questions
Post Question  |   Post Answer  |   My Panel  |   Search  |   Articles  |   Topics  |   ERRORS new
   Refer this Site  Refer This Site to Your Friends  Site Map  Bookmark this Site  Set it as your HomePage  Contact Us     Login  |  Sign Up                      
Google
   
 
Categories >> Software >> Programming Languages >> C++ >> OOPS
 
 


 

 
 STL interview questions  STL Interview Questions (93)
 OOPS interview questions  OOPS Interview Questions (563)
 C++ General interview questions  C++ General Interview Questions (459)
Question
What are the OOPS concepts?
 Question Submitted By :: OOPS
I also faced this Question!!     Answer Posted By  
 
Answer
# 1
1) Encapsulation: It is the mechanism that binds together
code and data in manipulates, and keeps both safe from
outside interference and misuse. In short it isolates a
particular code and data from all other codes and data. A
well-defined interface controls the access to that
particular code and data.
2) Inheritance: It is the process by which one object
acquires the properties of another object. This supports
the hierarchical classification. Without the use of
hierarchies, each object would need to define all its
characteristics explicitly. However, by use of inheritance,
an object need only define those qualities that make it
unique within its class. It can inherit its general
attributes from its parent. A new sub-class inherits all of
the attributes of all of its ancestors.
3) Polymorphism: It is a feature that allows one interface
to be used for general class of actions. The specific
action is determined by the exact nature of the situation.
In general polymorphism means "one interface, multiple
methods", This means that it is possible to design a
generic interface to a group of related activities. This
helps reduce complexity by allowing the same interface to
be used to specify a general class of action. It is the
compiler's job to select the specific action (that is,
method) as it applies to each situation
 
Is This Answer Correct ?    1120 Yes 198 No
Swetcha
 
Answer
# 2
OOPs concepts are
1)object
2)class
3)encapsulation
4)abstraction
5)polymorphism
6)inheritance
7)message passing
8)dynamic binding
These all are partially supported by c++,java supports
all the above features
 
Is This Answer Correct ?    699 Yes 101 No
Suresh Ragala
 
 
 
Answer
# 3
The concepts of OOPs are


Objects
Data abstraction
Data Encapsulation
Inheritance
Overloading
Polymorphism

And easy to use
 
Is This Answer Correct ?    682 Yes 161 No
Srividhya
 
Answer
# 4
OOPs concepts are
1)object
2)class
3)encapsulation
4)abstraction
5)polymorphism
6)inheritance
7)message passing
8)dynamic binding
These all are partially supported by c++,java supports
all the above features
 
Is This Answer Correct ?    428 Yes 74 No
Ramesh
 
Answer
# 5
BASIC CONCEPT OF OOPS:
1.OBJECTS:
An object is an abstraction of a real world entity. It may
represent a person,a placea number and icons or something
else that can be modelled.Any data in an object occupy some
space in memory and can communicate with eachother .
2.CLASSES:
A class is a collection of objects having common
features .It is a user defined datatypes which has data
members as well functions that manupulate these datas.
3.ABSTRACTION:
It can be definr\ed as the seperation of unnecessary
details or explation from system requirments so as to
reduce the complaxities of understanding requirments.
4.ENCAPTULATION:
It is a mechanism that puts the data and function together.
It is bthe result of hiding implimintation details of an
object from its user .The object hides its data to de
accessed by only those functions which are packed in the
class of that object.
5.INHERITANCE:
It is the relationship between two classes of object such
that one of the classes ,the child takes all the relevent
features of other class -the parent.
Inheritance bring about reusablity.
6.POLYMORPHISM:
polymorphism means having many forms that in a single
entity can takes more than one form.Polymorphism is
implemented through operator overloading and function
overloading.
7.DYNAMIC BINDING:
Dynamic binding is the proces of resolving the function to
be associated with yhe respective functions calls during
their runtime rather than compile time.
8.MESSAGE PASSING:
Every data in an objest in oops that is capable of
processing request known as message .All object can
communicate with each other by sending message to each other
 
Is This Answer Correct ?    307 Yes 35 No
Manila
 
Answer
# 6
Object oriented programming organizes a program around it's
data i.e objects and a set of well defined interface to
that data. An Object-oriented program can be characterized
as data controlling access to code.
 
Is This Answer Correct ?    427 Yes 240 No
Janet
 
Answer
# 7
objects
interface
polymorphism
inheritence
constructors
encapsulation
 
Is This Answer Correct ?    366 Yes 218 No
Satya
 
Answer
# 8
The following are the basic concepts of OOPS.
1)Objects
2)Classes
3)Data Abstraction
4)Data Encapsulation
5)Inheritance
6)Polymorphism
7)Message Passing
8)Reusability
9)Dynamic Binding
10)Methods
 
Is This Answer Correct ?    213 Yes 72 No
Rithi
 
Answer
# 9
OOPs concepts are
1)object
2)class
3)encapsulation
4)abstraction
5)polymorphism
6)inheritance
7)message passing
8)dynamic binding
BASIC CONCEPT OF OOPS:
1.OBJECTS:
An object is an abstraction of a real world entity. It may
represent a person,a placea number and icons or something
else that can be modelled.Any data in an object occupy some
space in memory and can communicate with eachother .
2.CLASSES:
A class is a collection of objects having common
features .It is a user defined datatypes which has data
members as well functions that manupulate these datas.
3.ABSTRACTION:
It can be definr\ed as the seperation of unnecessary
details or explation from system requirments so as to
reduce the complaxities of understanding requirments.
4.ENCAPTULATION:
It is a mechanism that puts the data and function together.
It is bthe result of hiding implimintation details of an
object from its user .The object hides its data to de
accessed by only those functions which are packed in the
class of that object.
5.INHERITANCE:
It is the relationship between two classes of object such
that one of the classes ,the child takes all the relevent
features of other class -the parent.
Inheritance bring about reusablity.
6.POLYMORPHISM:
polymorphism means having many forms that in a single
entity can takes more than one form.Polymorphism is
implemented through operator overloading and function
overloading.
7.DYNAMIC BINDING:
Dynamic binding is the proces of resolving the function to
be associated with yhe respective functions calls during
their runtime rather than compile time.
8.MESSAGE PASSING:
Every data in an objest in oops that is capable of
processing request known as message .All object can
communicate with each other by sending message to each other
 
Is This Answer Correct ?    167 Yes 31 No
Ponnurajesh
 
Answer
# 10
OOPs define software as a collection of discrete oblects
that specify both data structure and behavior. OOPs
Identify following aspects:
Data abstraction, Inheritence, Polymorphism, Encapsulation
(information hiding)etc.
 
Is This Answer Correct ?    207 Yes 77 No
Ajay Kumar(me-se-tu)
 

 
 
 
Other OOPS Interview Questions
 
  Question Asked @ Answers
 
What is function overloading?,describe it with the example.   5
//what is wrong with the programme?? #include<iostream.h> template <class first> class dd { first i; public: void set(); void print(); }; void dd< first>:: set() { cin>>i; } void dd< first>::print() { cout<<"\n"<<i; } void main() { dd <char>g; g.set(); g.print(); }   1
What do you mean by inline function?   6
What is the difference between pass by value,pass by pointer,pass by reference in the catch block in the exception handling in c++ TCS 1
Which keyword is written to use a variable declared in one class in the other class? TCS 5
wht is major diff b/w c and c++?   10
Pls...could any one tell me that whether we can access the public data memeber of a class from another class with in the same program. Awaiting for your response Thanku   4
what is the usage of clas templates   5
Write A Program using Single and Multiple Inheritance.   1
which are the 4 members functions in c++ objects that can either be declared explicitly by programmer or implementation if nt available.   4
What is namespace?   15
Write on signed and unsigned integers and give three (3) examples each   1
 
For more OOPS Interview Questions Click Here 
 
 
 
 
 


   
Copyright Policy  |  Terms of Service  |  Articles  |  Site Map  |  RSS Site Map  |  Contact Us
   
Copyright 2013  ALLInterview.com.  All Rights Reserved.

ALLInterview.com   ::  KalAajKal.com