Interface multiple inheritance &&byte&& abstract classes

Source: Internet
Author: User

First, abstract class

An abstract class can implement an interface if implementing an interface must implement a method in the interface

Second, byte

Byte (byte), which is the meaning of a bit, is often used to denote the following:

1tb=1024gb
1gb=1024mb
1mb=1024kb
1kb=1024byte
1byte=8bit (BIT)

Third, interface multiple inheritance

In Java design, class can only inherit single, but interface can be multiple inheritance, the example is as follows:

1 interface Monster {2     void menace (); 3} 4  5 interface Dangerousmonster extends Monster {6 void Destroy (); 7 } 8  9 interface Lethal {ten void Kill ();}12 interface Vampire14 extends Dangerousmonster, lethal {void dri Nkblood (); 16}

Interface multiple inheritance &&byte&& abstract classes

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.