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:
Sử dụng Fork/Join Framework với ForkJoinPool trong Java
Spring Security 5 for Reactive Applications
Introduction to the Java NIO Selector
More Jackson Annotations
Hashtable trong java
How to Get the Last Element of a Stream in Java?
Java Program to Find All Pairs Shortest Path
Java Program to Implement LinkedBlockingQueue API
Custom Thread Pools In Java 8 Parallel Streams
Java Program to Implement Min Hash
Java Program to Implement Ternary Heap
Java Program to Perform LU Decomposition of any Matrix
Java Program to Perform integer Partition for a Specific Case
A Guide to HashSet in Java
Mix plain text and HTML content in a mail
Java Program to Implement Solovay Strassen Primality Test Algorithm
Hướng dẫn Java Design Pattern – Command
Java Program to Implement Find all Cross Edges in a Graph
Redirect to Different Pages after Login with Spring Security
Java Program to Implement vector
Spring MVC + Thymeleaf 3.0: New Features
Java Program to Implement Naor-Reingold Pseudo Random Function
Cachable Static Assets with Spring MVC
Injecting Prototype Beans into a Singleton Instance in Spring
Java Program to Implement Binary Tree
Java Program to Construct an Expression Tree for an Infix Expression
Java Program to Generate Random Numbers Using Middle Square Method
Java Web Services – JAX-WS – SOAP
Java Program to Implement Hash Tables
Use Liquibase to Safely Evolve Your Database Schema
Java Program to Represent Graph Using Adjacency Matrix
Spring Boot - Google Cloud Platform