Write the two ways to achieve abstraction in java code example
Example: abstraction in java
Abstraction is nothing but the quality of dealing with ideas rather than
events. It basically deals with hiding the internal details and showing
the essential things to the user.