Suddenly inexplicable want to say static class this thing

Source: Internet
Author: User
Static class:

Still have a lot of classes are static class (this own Baidu), we can new a static class try, will find that static class can not be instantiated, good magic!

This time I would think that static classes are also abstract classes? With the anti-compiler found, I go, really ah, static class is really abstract class, and so on ... What I found is that static classes are not just abstract classes, but sealed!!! sealed!!! sealed!!! Important thing to say three times , so we come to the conclusion that static classes are abstract sealed class (sealed class is what: can not be inherited )--for example, we all know: String class, this is sealed class, you can F12 yourself to see, note that: Sealed classes can also be instantiated!      

Suddenly inexplicable want to say static class this thing

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: info-contact@alibabacloud.com 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.