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:
Introduction to Thread Pools in Java
Java Program to Implement Slicker Algorithm that avoids Triangulation to Find Area of a Polygon
Spring Data MongoDB – Indexes, Annotations and Converters
Java Program to Implement Min Heap
Giới thiệu Google Guice – Injection, Scope
Filtering and Transforming Collections in Guava
New Features in Java 11
Java Program to Implement Adjacency List
Working with Tree Model Nodes in Jackson
Java Program to Implement Sorting of Less than 100 Numbers in O(n) Complexity
Immutable Map Implementations in Java
Spring Data – CrudRepository save() Method
Using Custom Banners in Spring Boot
Java Timer
Java Program to Implement Karatsuba Multiplication Algorithm
Java Program to Implement HashMap API
Java Program to Implement Dijkstra’s Algorithm using Queue
Spring’s RequestBody and ResponseBody Annotations
Hướng dẫn Java Design Pattern – Memento
Java NIO2 Path API
Tạo chương trình Java đầu tiên sử dụng Eclipse
Extract network card address
Java Program to Find Number of Spanning Trees in a Complete Bipartite Graph
A Guide To UDP In Java
The SpringJUnitConfig and SpringJUnitWebConfig Annotations in Spring 5
Java Program to Delete a Particular Node in a Tree Without Using Recursion
Java Program to Find the Connected Components of an UnDirected Graph
Java Program to Represent Graph Using Adjacency List
Java Program to Check whether Directed Graph is Connected using BFS
List Interface trong Java
Spring Cloud – Tracing Services with Zipkin
Convert a Map to an Array, List or Set in Java