/**
* 1.抽象类中可以有非抽象的方法
* 2.抽象类中可以没有抽象的方法
* 3..抽象类中可以什么都没有如public abstract class Tool {}
* 4.有抽象方法的类必须声明为抽象类,否则回报下面的错
* The type Tool must be an abstract class to define abstract methods
*
*/
public abstract class Tool {
public void print() {
System.out.println("jfdkas");
}
public void pritn1(){
}
public abstract void print3();
}
* 1.抽象类中可以有非抽象的方法
* 2.抽象类中可以没有抽象的方法
* 3..抽象类中可以什么都没有如public abstract class Tool {}
* 4.有抽象方法的类必须声明为抽象类,否则回报下面的错
* The type Tool must be an abstract class to define abstract methods
*
*/
public abstract class Tool {
public void print() {
System.out.println("jfdkas");
}
public void pritn1(){
}
public abstract void print3();
}