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 MVC and the @ModelAttribute Annotation
A Guide to BitSet in Java
HttpClient 4 Cookbook
Java Program to Implement Karatsuba Multiplication Algorithm
Java Program to Implement SimpeBindings API
A Guide to Java SynchronousQueue
Spring @RequestMapping New Shortcut Annotations
Request Method Not Supported (405) in Spring
Introduction to Using Thymeleaf in Spring
Java Program to Permute All Letters of an Input String
Java Program to Implement Ternary Search Algorithm
Java Program to Implement Binary Tree
Adding Parameters to HttpClient Requests
Spring Boot - Enabling Swagger2
Java Program to Find Path Between Two Nodes in a Graph
Guava Collections Cookbook
Java Program to Perform the Unique Factorization of a Given Number
Annotation trong Java 8
Java Program to Implement String Matching Using Vectors
Lớp Arrarys trong Java (Arrays Utility Class)
Extra Login Fields with Spring Security
Java Program to Solve a Matching Problem for a Given Specific Case
Spring RestTemplate Error Handling
Introduction to Java Serialization
Logging a Reactive Sequence
Hướng dẫn Java Design Pattern – Service Locator
Getting a File’s Mime Type in Java
Unsatisfied Dependency in Spring
Send email with authentication
Java Program to Compute Cross Product of Two Vectors
Jackson Exceptions – Problems and Solutions
Java Program to Implement Heap