Static issues, final issues, abstract issues in Java inheritance

Source: Internet
Author: User
  • The static method or property can be inherited, and the static method can be overridden by the quilt class, but the static method cannot override the quilt class as an abstract method
  • The final method in the parent class can be inherited by the class, but it cannot be overwritten or overridden in a subclass. In short, once the method is declared final in the parent class, the subclass cannot move the method at all
  • A class that is defined as abstract does not necessarily have an abstract method, but once a class is defined as abstract it cannot be instantiated

Static issues, final issues, abstract issues in Java inheritance

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.