Tính trừu tượng (abstraction) là một trong bốn tính chất cơ bản của lập trình hướng đối tượng trong Java.
Tính trừu tượng là một tiến trình ẩn các chi tiết trình triển khai và chỉ hiển thị tính năng tới người dùng. Tính trừu tượng cho phép bạn loại bỏ tính chất phức tạp của đối tượng bằng cách chỉ đưa ra các thuộc tính và phương thức cần thiết của đối tượng trong lập trình.
Tính trừu tượng giúp bạn tập trung vào những cốt lõi cần thiết của đối tượng thay vì quan tâm đến cách nó thực hiện.
Trong Java, chúng là sử dụng abstract class và abstract interface để có tính trừu tượng. Chi tiết các bạn xem thêm ở bài viết: Abstract class và Interface trong Java.
Related posts:
Java Program to Implement Interpolation Search Algorithm
Java Program to Implement Bellman-Ford Algorithm
Java Program to implement Array Deque
Spring Security with Maven
Java Program to Generate All Subsets of a Given Set in the Gray Code Order
Lập trình đa luồng với CompletableFuture trong Java 8
Java Program to Encode a Message Using Playfair Cipher
Marker Interface trong Java
Daemon Threads in Java
Java Program to Construct an Expression Tree for an Infix Expression
Java 9 Stream API Improvements
Java Program to Solve any Linear Equation in One Variable
Guide to @JsonFormat in Jackson
Java Program to Implement JobStateReasons API
Java Program to Perform Finite State Automaton based Search
Spring Security 5 – OAuth2 Login
Java Program to Find the Connected Components of an UnDirected Graph
Java Program to Implement Gabow Algorithm
Guide to Java 8’s Collectors
Encode/Decode to/from Base64
Auditing with JPA, Hibernate, and Spring Data JPA
Java Program to Implement Hash Tables Chaining with Doubly Linked Lists
Java Program to Implement Floyd-Warshall Algorithm
Spring Data – CrudRepository save() Method
Introduction to Spliterator in Java
Spring Boot - Thymeleaf
Java Program to Implement Variable length array
Guide to the Java ArrayList
Một số tính năng mới về xử lý ngoại lệ trong Java 7
Java Program to Implement SynchronosQueue API
New Features in Java 15
HashSet trong Java hoạt động như thế nào?