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
   
 


 

Company >> Intel >> Interview Questions >> OOPS Interview Questions
 
  USA Student Visa F1 Visa Interview Questions (2)   H1B Visa Interview Questions (1)   CCNA Interview Questions (1)
  Everything Else AllOther Interview Questions (1)   General Knowledge_Current Affairs Interview Questions (2)   Group II History Interview Questions (1)
  Call Centre AllOther Interview Questions (26)   Accounting AllOther Interview Questions (1)   Human Resources Interview Questions (1)
  Finance Interview Questions (1)   Marketing Sales Interview Questions (4)   Engineering AllOther Interview Questions (1)
  Electronics Communications Interview Questions (3)   Electrical Engineering Interview Questions (2)   Mechanical Engineering Interview Questions (1)
  Embedded Systems AllOther Interview Questions (1)   VLSI Interview Questions (124)   86 Family Interview Questions (2)
  Oracle Apps Technical Interview Questions (2)   PeopleSoft Administration Interview Questions (1)   FI CO Interview Questions (1)
  SD Interview Questions (1)   ABAP Interview Questions (15)   Project Planning Interview Questions (1)
  HR Questions Interview Questions (1)   Teradata Interview Questions (2)   Struts Interview Questions (1)
  JCL Interview Questions (1)   Manual Testing Interview Questions (7)   QTP Interview Questions (7)
  Operating Systems General Concepts Interview Questions (2)   Linux System Calls Interview Questions (1)   SQL Server Interview Questions (1)
  Microsoft Related AllOther Interview Questions (1)   Dot Net General Interview Questions (1)   ASP.NET Interview Questions (1)
  C Sharp Interview Questions (1)   Protocols AllOther Interview Questions (1)   PHP Interview Questions (1)
  Delphi Interview Questions (1)   C++ General Interview Questions (4)   OOPS Interview Questions (2)
 
Back to Questions Page
Question   What is virtual class and friend class? Rank Answer Posted By  
 Interview Question Submitted By :: Tribhuvan Sharma
I also faced this Question!!   © ALL Interview .com
Answer
frien class are used when two or more classes are designed 
to work together and virtual base class aids in multiple 
inheritance
 
2 Guest
 
 
Answer
friend class is used to share private data between 2 or 
more classes the function declared as freind are not called 
using any object it is called like normal .the arguments to 
such functions is normally object of a class.
virtual class is used for run time polymorphism when object 
is linked to procedure call at run time
 
2 Kirti Joshi
 
 
Answer
A virtual class is an inner class that can be overridden by 
derived classes of the outer class.
 
2 Vaibhav Panchal
 
 
 
Answer
A virtual class is an inner class that can be overridden by 
derived classes of the outer class.

eg.
class Base 
{ 
public:
int value 
};
class child1 : public Base { };
class child2 : public Base { };
class grandchild : virtual public child1, virtual public 
child2 
{ 
public:
grandchild() { value };
};
 
3 Vaibhav Panchal
 
 
Answer
A virtual class is an inner class that can be overridden by 
derived classes of the outer class.buti in this virtual 
class cant access the privat member data and funtion .

A friend class is can access the privat member data and 
function .
 
0 Govind
 
 
Question   What are the OOPS concepts? Rank Answer Posted By  
 Interview Question Submitted By :: Guest
I also faced this Question!!   © ALL Interview .com
Answer
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
 
3 Swetcha
 
 
Answer
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.
 
4 Janet
 
 
Answer
The concepts of OOPs are


Objects
Data abstraction 
Data Encapsulation
Inheritance
Overloading 
Polymorphism

And easy to use
 
3 Srividhya
 
 
Answer
message passing
 
3 Hi
 
 
Answer
objects
interface
polymorphism
inheritence
constructors
encapsulation
 
3 Satya
 
 
Answer
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.
 
3 Siva
 
 
Answer
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
 
3 Suresh Ragala
 
 
Answer
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
 
4 Mayank Gupta
 
 
Answer
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
 
4 Ramesh
 
 
Answer
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.
 
3 Ajay Kumar(me-se-tu)
 
 
 
Back to Questions Page
 
 
 
 
 


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

ALLInterview.com   ::  KalAajKal.com