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 (90)
 OOPS interview questions  OOPS Interview Questions (554)
 C++ General interview questions  C++ General Interview Questions (458)
Question
What are the OOPS concepts?
 Question Submitted By :: Guest
I also faced this Question!!     Rank Answer Posted By  
 
  Re: What are the OOPS concepts?
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 ?    1114 Yes 196 No
Swetcha
[Semanticspace]
 
  Re: What are the OOPS concepts?
Answer
# 2
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 ?    424 Yes 240 No
Janet
 
 
 
  Re: What are the OOPS concepts?
Answer
# 3
The concepts of OOPs are


Objects
Data abstraction
Data Encapsulation
Inheritance
Overloading
Polymorphism

And easy to use
 
Is This Answer Correct ?    680 Yes 159 No
Srividhya
 
  Re: What are the OOPS concepts?
Answer
# 4
message passing 
Is This Answer Correct ?    219 Yes 496 No
Hi
 
  Re: What are the OOPS concepts?
Answer
# 5
objects
interface
polymorphism
inheritence
constructors
encapsulation
 
Is This Answer Correct ?    363 Yes 217 No
Satya
 
  Re: What are the OOPS concepts?
Answer
# 6
Object-oriented programming (OOP) is a computer science
term used to characterize a programming language that began
development in the 1960’s. The term ‘object-oriented
programming’ was originally coined by Xerox PARC to
designate a computer application that describes the
methodology of using objects as the foundation for
computation. By the 1980’s, OOP rose to prominence as the
programming language of choice, exemplified by the success
of C++. Currently, OOPs such as Java, J2EE, C++, C#, Visual
Basic.NET, Python and JavaScript are popular OOP
programming languages that any career-oriented Software
Engineer or developer should be familiar with.
 
Is This Answer Correct ?    191 Yes 207 No
Siva
 
  Re: What are the OOPS concepts?
Answer
# 7
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 ?    693 Yes 99 No
Suresh Ragala
 
  Re: What are the OOPS concepts?
Answer
# 8
There are only five concepts in the oops others may be
derived from those:
1. Encapsulation and Data Abstraction
2. Polymorphism
3. Dynamic Binding
4. Message Passing
5. Inheritance
 
Is This Answer Correct ?    258 Yes 144 No
Mayank Gupta
 
  Re: What are the OOPS concepts?
Answer
# 9
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 ?    426 Yes 73 No
Ramesh
 
  Re: What are the OOPS concepts?
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 ?    205 Yes 76 No
Ajay Kumar(me-se-tu)
 

 
 
 
Other OOPS Interview Questions
 
  Question Asked @ Answers
 
What is the output of the following code: int v() { int m=0; return m++; } int main() { cout<<v(); } 1) 1 2) 0 3) Code cannot compile   4
what is the difference between containership and inheritence?   1
what is the main difference between sizeof() operator in c and c++   3
Write a program to multiply 3x3 matrics   1
when my application exe is running nad i don't want to create another exe what should i do HCL 2
What does the code "cout<<(0==0);" print? 1) 0 2) 1 3) Compiler error: Lvalue required Wipro 15
c++ provides classes...and classes do what we want but why then strcut are used...if we say data hiding... it is also provided by c++ in structs then why to prefer clasess TCS 1
what is difference between c++ language and java language   5
pointers are support in C#? if yes then how to use it? Softvision-Solution 7
difference between overloading and overridding   11
Which keyword is written to use a variable declared in one class in the other class? TCS 5
Definition of Object Oriented Programming in single line? TCS 33
 
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