标签:protected class rgs java protect tag awt static new
import java.awt.List;
class Person{
public int c;
private String name;
private int age;
protected void setName(String name){
this.name=name;
}
protected void setAge(int age){
this.age=age;
}
protected void print(){
System.out.println("Name="+name+" Age="+age);
}
}
public class DemoSuper extends Person{
public void print(){
System.out.println("DemoSuper:");
super.print();
}
public static void main(String[] args){
DemoSuper ds = new DemoSuper();
ds.setName("kevin");
ds.setAge(22);
ds.print();
}
}
\[ e_{2ASK}(t)=s(t)cos{\omega_c}{t} \]
标签:protected class rgs java protect tag awt static new
原文地址:http://www.cnblogs.com/Mito/p/7896916.html