Abstract methods require that subclasses be overridden after inheritance. So what keywords can’t the abstract keyword be used with?The following keywords, in the abstract class. It is possible to use it, but it is meaningless.
- private: A subclass cannot override an abstract after it has been privatized. Static: Static, taking precedence over an object. Abstract methods require subclass overriding, and static methods cannot be overridden, so the two are contradictory. Final: Modified by final, the abstract cannot be rewritten against the abstract.
Read More:
- Access characteristics of construction methods in Java inheritance
- Initialization order of Java objects
- C++ Error: allocating an object of abstract class type
- LDAP: error code 21 – objectclass: value ා 0 invalid per syntax
- non-static variable this cannot be referenced from a static context
- The solution of multiple markers at this line @ override
- The difference between sleep() and wait() in Java
- Java gets the type t.class of generic t
- Encapsulation of adding, deleting and modifying database by JDBC
- Solution of idea using @ Autowired annotation to report errors
- error: invalid use of non-static member function
- C ා programming encountered an object reference is required for the non-static field, method, or property error
- Introducing pair in Java
- Error c2259 cannot instance abstract class due to following members
- VTK learning notes: visual model
- Brief introduction of idea Lombok and solutions for reporting red and wrong
- Login authority verification
- Aidl learning
- Solve the interceptor calling service layer to display null pointer.
- Macro generated_ UCLASS_ Body () and generated_ Analysis of body ()