⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 entitytest6.java

📁 关于java面向对象系统分析方面的课件
💻 JAVA
字号:
/*
 * test.EntityTest6.java
 * 2007-7-18
 * 测试类
 */
package test;

import s2jsp.lg.entity.*;

public class EntityTest6 {

    public static void main(String[] args) {
        Topic topic = new Topic();
//      topic.getInfo();//Topic类未定义getInfo(),但是继承了来自Tip类的getInfo()方法
        
        topic.setTitle("我会用继承了");
        topic.setContent("如题");
        topic.setPublishTime("2010-10-1 12:01:10");
        topic.getInfo();
        
        Reply reply = new Reply();
//      reply.getInfo();
        
        reply.setTitle("Re:我会用继承了");
        reply.setContent("俺也会");
        reply.setPublishTime("2010-10-1 12:03:12");
        reply.getInfo();        
    }
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -