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                      
tip   To Refer this Site to Your Friends   Click Here
Google
   
 
Categories  >>  Software  >>  Programming Languages  >>  C++  >>  OOPS
 
 


 

 
 STL interview questions  STL Interview Questions
 OOPS interview questions  OOPS Interview Questions
 C++ General interview questions  C++ General Interview Questions
Question
WHAT IS THE DIFFERENCE BETWEEN ABSTRUCTION AND 
ENCAPSULATION?
PLEASE EXPLAIN IT.
 Question Submitted By :: Deepak Pareek
I also faced this Question!!     Rank Answer Posted By  
 
  Re: WHAT IS THE DIFFERENCE BETWEEN ABSTRUCTION AND ENCAPSULATION? PLEASE EXPLAIN IT.
Answer
# 1
ABSTRUCTION:

Process of providing the neccesary properties & operations
of an object is called as abstuction

Example take car the car user only know things reqired.
he don't no the internal functionality of the car b'coz it
is not required for the user .

properties like car:colour,number,model etc.
operations like car:move front,backetc.

ENCAPSULATION:

Process of providing all the properties&operayion of entity
in one place is called as encapsulation.

In java operations are called as methods,properties are
called as variables.

The place where you were write the variables &properties is
called as class.
 
Is This Answer Correct ?    24 Yes 8 No
Mahesh_b.tech@2008
 
  Re: WHAT IS THE DIFFERENCE BETWEEN ABSTRUCTION AND ENCAPSULATION? PLEASE EXPLAIN IT.
Answer
# 2
ABSTRACTION
An abstract class is a parent class that allows inheritance
but can never be instantiated. Abstract classes contain one
or more abstract methods that do not have implementation.
Abstract classes allow specialization of inherited classes.
ENCAPSULATION:
Wrapping up of data into a single unit..
 
Is This Answer Correct ?    7 Yes 16 No
Ganesh
 
 
 
  Re: WHAT IS THE DIFFERENCE BETWEEN ABSTRUCTION AND ENCAPSULATION? PLEASE EXPLAIN IT.
Answer
# 3
In C++ terms, abstraction is achieved by access modifiers:
private and protected. Encapsulation is achieved by classes

Vikas
http://www.cppquestions.com/
 
Is This Answer Correct ?    2 Yes 5 No
Vikas
 
  Re: WHAT IS THE DIFFERENCE BETWEEN ABSTRUCTION AND ENCAPSULATION? PLEASE EXPLAIN IT.
Answer
# 4
abstraction:
abstraction means providing the relevant information only
and hiding other information..

encapsulation:

encapsulation means capsuling of data in the class..in
encapsulation the data members are declared in a class.and
we u want to use that variables only the copy of the
variables goes there which we use in other public
classes.this generates the concept of information hiding.
encapsulation also provide scurity to the data variables
 
Is This Answer Correct ?    6 Yes 0 No
Narender_niit
 
  Re: WHAT IS THE DIFFERENCE BETWEEN ABSTRUCTION AND ENCAPSULATION? PLEASE EXPLAIN IT.
Answer
# 5
Process of providing the neccesary properties & operations
of an object is called as abstuction
 
Is This Answer Correct ?    2 Yes 0 No
Ronny
 
  Re: WHAT IS THE DIFFERENCE BETWEEN ABSTRUCTION AND ENCAPSULATION? PLEASE EXPLAIN IT.
Answer
# 6
abstaction means hiding information details.it creates a
new data item with encapsulated objects.
encapusulation means it encapsulates both the code and data
and it manipulates the both and keeps safe from
interferences and misuse.
 
Is This Answer Correct ?    6 Yes 0 No
B.vara Lakshmi
 
  Re: WHAT IS THE DIFFERENCE BETWEEN ABSTRUCTION AND ENCAPSULATION? PLEASE EXPLAIN IT.
Answer
# 7
Encapsulation prevents the code and data of one class to be
accessed by code which is out side class

Abstraction refers to hiding of irrelevant data.
 
Is This Answer Correct ?    1 Yes 0 No
Sdk
 

 
 
 
Other OOPS Interview Questions
 
  Question Asked @ Answers
 
Name an advantage of linked list over array? IBM11
what is the virtual function overhead, and what is it used for ? i hope i can get and appropriate answers, thanks a lot....  6
inheritence with example  1
what are abstract classes and how they impliment , with example  2
What is friend function? Wipro12
WHAT IS THE DIFFERENCE BETWEEN ABSTRUCTION AND ENCAPSULATION? PLEASE EXPLAIN IT. ETH7
write a program to print * * * * * *  2
1.explicit call for destructor 2.calling function inside a constructor. 3.base *b-new derived delete b; 4.delete p what it will delete. 5.size of base class and derived class int i,in base class and int j in derived. 6.int i-20 int main() { int i =5; printf("%d".::i); { int i =10; printf("%d".::i); } } 7.object slicing 8.new 9.function overloading(return type). 10.class base() { virtuval fun() { ----- } } class derivied:public base() { fun() { ----- } } int main() { derived d; } 11.how static function will call in C++? 12.default structures are in C++? 13.constructors should be in public . 14.virtuval constructor not exist. 15.multilevel inhritence. destructor order. Tech-Mahindra1
Program to check whether a word starts with a capital letter or not. Infosys1
write a program which best describes polymorphism in real world? CTS2
how do u initialize the constant variables Siemens5
who is the founder of c++? Hexaware15
 
For more OOPS Interview Questions Click Here 
 
 
 
 
 


   
Copyright Policy  |  Terms of Service  |  Help  |  Site Map 1  |  Articles  |  Site Map  |   Site Map  |  Contact Us interview questions urls   External Links 
   
Copyright © 2012  ALLInterview.com.  All Rights Reserved.

ALLInterview.com   ::  Forum9.com   ::  KalAajKal.com