abstract的应用举例:
举例一:
举例二:
abstract class GeometricObject{
public abstract double findArea();
}
class Circle extends GeometricObject{
private double radius;
public double findArea(){
return 3.14 * radius * radius;
};
}
举例三:IO流中设计到的抽象类:InputStream/OutputStream / Reader /Writer。在其内部
定义了抽象的read()、write()方法。
举例一:
举例二:
abstract class GeometricObject{
public abstract double findArea();
}
class Circle extends GeometricObject{
private double radius;
public double findArea(){
return 3.14 * radius * radius;
};
}
举例三:IO流中设计到的抽象类:InputStream/OutputStream / Reader /Writer。在其内部
定义了抽象的read()、write()方法。
【News from the industry】[围观][围观]
Fancy Colors Score Big at Auctions;
ALROSA: Diamond sales down by 47%, production by 22% in the first half of 2020;
Chow Tai Fook Jewellery's mainland market retail sales remained flat year-on-year in the second quarter;
De Beers Q2 output halves as Covid-19 wreaks havoc.
>>>See more: https://t.cn/A6yBmrnD
Fancy Colors Score Big at Auctions;
ALROSA: Diamond sales down by 47%, production by 22% in the first half of 2020;
Chow Tai Fook Jewellery's mainland market retail sales remained flat year-on-year in the second quarter;
De Beers Q2 output halves as Covid-19 wreaks havoc.
>>>See more: https://t.cn/A6yBmrnD
刚刚在超市排队结账,有个黑人哥哥欲言又止地看着我,于是我和他眼神对视了,
然后他说:can you speak English?
我心想虽然好久没学英语但是这句我听懂了,就答个yes吧,
然后他就说了一串#¥/“=~…%¥)”:、…-??
我以为他讲的阿拉伯语我❓❓
然后旁边的黑人姐姐拿着一个usb嘴里说:input output
我❓然后我说:do you need the computer??
我心想超市的收银机能插usb不
然后他们还在用身体语言配合英文单词向我说明,然后我听懂了终于,
原来是要打印啊!!!
作为祖国的大学生一定要发挥乐于助人的精神!!
然后我带着这个姐姐去打印店了,路上反应过来我拿着的维他奶没有付钱,
这姐姐路上一直说nearby??我yes yes yes
然后她好像不满意我的回应
问了我一句“can you speak Chinese?”
然后他说:can you speak English?
我心想虽然好久没学英语但是这句我听懂了,就答个yes吧,
然后他就说了一串#¥/“=~…%¥)”:、…-??
我以为他讲的阿拉伯语我❓❓
然后旁边的黑人姐姐拿着一个usb嘴里说:input output
我❓然后我说:do you need the computer??
我心想超市的收银机能插usb不
然后他们还在用身体语言配合英文单词向我说明,然后我听懂了终于,
原来是要打印啊!!!
作为祖国的大学生一定要发挥乐于助人的精神!!
然后我带着这个姐姐去打印店了,路上反应过来我拿着的维他奶没有付钱,
这姐姐路上一直说nearby??我yes yes yes
然后她好像不满意我的回应
问了我一句“can you speak Chinese?”
✋热门推荐