Java abstraction in oop

Java abstraction in oop

Abstraction is the concept of object-oriented programming that "shows" only essential attributes and "hides" unnecessary information.
The main purpose of abstraction is hiding the unnecessary details from the users.

  • it is the deatail hiding and implementation of the services
  • data abstraction deals with exposing the interface to the user and hiding the details of implementation

Java abstraction example:

re‮ot ref‬:lautturi.com
abstract class Car{
	int color ;
	abstract void start();
	abstract void break();
}
Created Time:2017-08-30 08:17:50  Author:lautturi