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:
Spring Autowiring of Generic Types
Guide to BufferedReader
Apache Commons Collections MapUtils
Java Program to Perform Cryptography Using Transposition Technique
Java Program to Implement Adjacency List
Spring Boot - Rest Template
Spring Boot - Admin Server
Java Program to Implement Park-Miller Random Number Generation Algorithm
Mệnh đề Switch-case trong java
Java Program to Implement Dijkstra’s Algorithm using Queue
Java Program to Use Dynamic Programming to Solve Approximate String Matching
Java Program to Implement Queue using Linked List
Java Program to Implement the Alexander Bogomolny’s UnOrdered Permutation Algorithm for Elements Fro...
Java Program to Represent Graph Using 2D Arrays
Java Program to Implement Randomized Binary Search Tree
Spring Boot Configuration with Jasypt
Java Program to Create the Prufer Code for a Tree
Quản lý bộ nhớ trong Java với Heap Space vs Stack
Java Program to Implement Ford–Fulkerson Algorithm
Convert String to int or Integer in Java
Java Program to Solve TSP Using Minimum Spanning Trees
Creating a Custom Starter with Spring Boot
Notify User of Login From New Device or Location
Handling Errors in Spring WebFlux
Java Program to Find the Shortest Path Between Two Vertices Using Dijkstra’s Algorithm
Spring Boot - Thymeleaf
Spring Boot - Introduction
A Guide to HashSet in Java
Guava – Join and Split Collections
Documenting a Spring REST API Using OpenAPI 3.0
Sắp xếp trong Java 8
Quick Guide to Spring Controllers