WHAT IS THE DIFFERENCE BETWEEN ABSTRUCTION AND
ENCAPSULATION?
PLEASE EXPLAIN IT.
Answer Posted / 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 |
Post New Answer View All Answers
What is polymorphism used for?
What is a class in oop?
There are two base class B1,B2 and there is one class D which is derived from both classes, Explain the flow of calling constructors and destructors when an object of derived class is instantiated.
What is an advantage of polymorphism?
What are the benefits of polymorphism?
When not to use object oriented programming?
Plese get me a perfect C++ program for railway/airway reservation with all details.
What does sksksk mean in text slang?
What is difference between data abstraction and encapsulation?
What is encapsulation and abstraction? How are they implemented in C++?
Why do we use oop?
What are the two different types of polymorphism?
Why do we use oops?
What are different types of JVM's? for example we use dalvik jvm for android then what about the remaining operating systems?