码迷,mamicode.com
首页 > 其他好文 > 详细

测试博客

时间:2017-11-25 23:43:46      阅读:170      评论:0      收藏:0      [点我收藏+]

标签: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

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!