package com.ez.impl;
import com.ez.Machine;
import com.ez.Vehicle;
public class KnowIcon implements Machine,Vehicle{
@Override
public void didi() {
this.privateSay();
System.out.println(Machine.power);
}
@Override
public void turn() throws RuntimeException {
System.out.println(Vehicle.power);
}
private void privateSay(){
}
public void publicSay(){
}
protected void protectedSay(){
}
void Say(){
}
static final void staticFinalSay(){
}
}
圆圈里面C代表类
绿点代表public修饰符,空三角形代表Override
正方形红块代表private修饰符
菱形黄块代表protected修饰符
蓝色三角形代表defualt修饰符
SF分别代表static和final