WHAT IS THE DIFFERENCE BETWEEN ABSTRUCTION AND
ENCAPSULATION?
PLEASE EXPLAIN IT.

Answers were Sorted based on User's Feedback



WHAT IS THE DIFFERENCE BETWEEN ABSTRUCTION AND ENCAPSULATION? PLEASE EXPLAIN IT. ..

Answer / mahesh_b.tech@2008

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 ?    31 Yes 8 No

WHAT IS THE DIFFERENCE BETWEEN ABSTRUCTION AND ENCAPSULATION? PLEASE EXPLAIN IT. ..

Answer / narender_niit

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 ?    8 Yes 1 No

WHAT IS THE DIFFERENCE BETWEEN ABSTRUCTION AND ENCAPSULATION? PLEASE EXPLAIN IT. ..

Answer / ronny

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

Is This Answer Correct ?    6 Yes 0 No

WHAT IS THE DIFFERENCE BETWEEN ABSTRUCTION AND ENCAPSULATION? PLEASE EXPLAIN IT. ..

Answer / b.vara lakshmi

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 ?    7 Yes 1 No

WHAT IS THE DIFFERENCE BETWEEN ABSTRUCTION AND ENCAPSULATION? PLEASE EXPLAIN IT. ..

Answer / sdk

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

WHAT IS THE DIFFERENCE BETWEEN ABSTRUCTION AND ENCAPSULATION? PLEASE EXPLAIN IT. ..

Answer / vikas

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 6 No

WHAT IS THE DIFFERENCE BETWEEN ABSTRUCTION AND ENCAPSULATION? PLEASE EXPLAIN IT. ..

Answer / ganesh

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 17 No

Post New Answer

More OOPS Interview Questions

how to find the largest of given numbers in an array

2 Answers  


What are the data types in oop?

0 Answers  


What is overloading in oops?

0 Answers  


what do you mean by static member variable?

2 Answers  


what is difference between class template and template class?

0 Answers  


String = "C++ is an object oriented programming language.An imp feature of oops is classes and objects".Write a pgm to count the repeated words from this scenario?

0 Answers   HCL,


What is Difference Between Inheritance and creating object and getting data? means Class A extends B{ B.getMethod();} (OR) Class A{ b obj=new B(); obj.getMethod(); }

0 Answers   SRA,


what is oops

4 Answers   DELL,


Is html an oop?

0 Answers  


OOP'S advantages of inheritance include:

1 Answers   Infosys,


What are the access specifiers avaible in c++?

4 Answers  


Which is faster post increment or pre increment ? and in which cases should u use either - to increase speed?

4 Answers   EA Electronic Arts,


Categories