第一题,运行错误.
应该是:float f = 12.58f;
第二题
abstract class human {
public abstract void walk();
}
class man extends human {
void walk() {
System.out.println("Man is walking!");
}
}
第一题,运行错误.
应该是:float f = 12.58f;
第二题
abstract class human {
public abstract void walk();
}
class man extends human {
void walk() {
System.out.println("Man is walking!");
}
}