answersLogoWhite

0


Best Answer

Encapsulation means hiding something, so you don't know anything about it, not even whether it exists or not.

Abstraction means vague, you may know what it is or expect what it will be and thus behave, but not exactly. And you don't know how it (the object) is implemented in details.

In a more compact context, encapsulation is referring to hiding data members (or attributes) and their types from outsiders, while abstraction means to define the interface or behaviors of an object (the APIs). You know the method signatures (the contracts), but you don't know anything about the implementation.

User Avatar

Wiki User

12y ago
This answer is:
User Avatar
More answers
User Avatar

Wiki User

13y ago

Data hiding is the process by which access modifiers are used to hide the visibility of java methods and variables. They access modifiers are: public, private and protected.

Abstraction is the process by which we define a specific behavior by beans of abstract classes and methods which form the skeleton for any class that would be extending this class.

This answer is:
User Avatar

User Avatar

Wiki User

13y ago

THE DESIGNER DESIGN THE COMPUTER ARCHITECTURE IN A VERY COMPLEX WAY AND user are not familiar with this complex structure . the hiding of complexity of computer design are called abstraction

This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: Difference between encapsulation and abstraction
Write your answer...
Submit
Still have questions?
magnify glass
imp
Continue Learning about Engineering

3 pillars of object oriented programming?

abstraction, inheritance, encapsulation, and polymorphism.


Is encapsulation a characteristic of procedural or object oriented programming?

Encapsulation is one of the four pillars of object-oriented programming. The other three are inheritance, polymorphism and abstraction.


Can abstraction encapsulation be achieved in C program if yes explain?

abstraction and encapsulation is one of the concepts of OOPs and C is not an OOP [Object Oriented Programming language] obviously abst & encap will not be supported by 'C' Abstraction & encapsulation is a concept of OOP [Object Oriented Programming] But, 'C' is not an OOP whereas it is a POP [Procedure oriented programming], so obviously 'C' does not support abstraction and encapsulation Answer Encapsulation is not inherently supported but it can be emulated in C. The use of static and extern keywords for functions are almost equivalent to your private and public keywords in java (encapsulation). Read up more on those keywords.. Structures become an object's attributes while functions accepting pointers the the said struct become its methods.


Basic concepts of OOP?

The four main pillars of all OOP languages are encapsulation, inheritance, polymorphism and abstraction.


What is abstraction method in java?

Abstraction in Java or Object oriented programming is a way to segregate implementation from interface and one of the five fundamentals along with Encapsulation, Inheritance, Polymorphism, Class and Object. Abstraction in Java is achieved by using interface and abstract class in Java.

Related questions

3 pillars of object oriented programming?

abstraction, inheritance, encapsulation, and polymorphism.


What are the benefits and application of OOP?

Encapsulation, inheritance, polymorphism and abstraction.


What are the characteristics of OOPS?

Data Encapsulation, Abstraction, Inheritance, Polymorphism


What are components of object oriented programming?

abstraction,encapsulation,inheritence,polymorphism,object


Is encapsulation a characteristic of procedural or object oriented programming?

Encapsulation is one of the four pillars of object-oriented programming. The other three are inheritance, polymorphism and abstraction.


Main deffrent between c and cpp?

The main difference between c and c++ is the concept of 'Object Oriented Programming' (OOPS). Thus c does not have the benefits of oops like: 1. abstraction 2. encapsulation 3. inheritance 4. polymorphism etc.


What are different properties provided by Object-oriented systems?

Polymorphism,Inheritence,Abstraction and Encapsulation


What are the basic concept of object oriented programming language?

Inheritance Encapsulation Polymorphism Abstraction


Can abstraction encapsulation be achieved in C program if yes explain?

abstraction and encapsulation is one of the concepts of OOPs and C is not an OOP [Object Oriented Programming language] obviously abst & encap will not be supported by 'C' Abstraction & encapsulation is a concept of OOP [Object Oriented Programming] But, 'C' is not an OOP whereas it is a POP [Procedure oriented programming], so obviously 'C' does not support abstraction and encapsulation Answer Encapsulation is not inherently supported but it can be emulated in C. The use of static and extern keywords for functions are almost equivalent to your private and public keywords in java (encapsulation). Read up more on those keywords.. Structures become an object's attributes while functions accepting pointers the the said struct become its methods.


What are the impacts of encapsulation in abstraction and information hiding?

It confounds what has been confounded It confounds what has been confounded


What is oops.explain briefly the elements of oops?

if any system supports for abstraction,encapsulation,inheritance and polymorphism.


What is data abstraction in c sharp?

Abstraction means that all information exist but only the relevent information is provided to the user. Encapsulation assists abstraction by providing a mean of suppressing the non-essential details.