Abstraction in Java and used of abstract class & method in Java
Introduction:- Abstraction in Java and Abstract Class & Method in this tutorial we explain about what is abstraction and also explain about abstract method and abstract class in Java with example . What is abstraction? Abstraction is a process to hiding the certain details from the users and that focus on a service provide to a users is called Abstraction . For example a developer create a calculator in Java and that's providing a service addition, subtraction, multiplication and division. When you use a calculator for addition a two number then user get only output of addition he did not know what is working behind the calculation in a program. Advantage:- 1. Avoid code duplication and increase reusability . 2. The size of code is reduce and reduce complexity . 3. Provide a security of program only require detail is provide to users. 4. We can able to perform any type of changes in back side without effecting the end use
0 Comments
Hello Friends, Please comment and share and do not write spam messages