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

📄 topic.java

📁 关于java面向对象系统分析方面的课件
💻 JAVA
字号:
/*
 * s2jsp.lg.entity.Topic.java
 * 2007-7-18
 * 主题类
 */
package s2jsp.lg.entity;

public class Topic extends Tip {
    private int topicId = 1;  // 唯一标志主题的id
    private int boardId = 1;  // 引用板块的id,用来表示该帖子是哪个板块的
    
    /**
     * 输出当前主题的信息
     */
    public void getInfo(){
        System.out.println("====主题信息====");
        System.out.println("主题标题:" + this.getTitle());
        System.out.println("主题内容:" + this.getContent());
        System.out.println("发表时间:" + this.getPublishTime() + "\n");
    }

    public int getTopicId() {
        return topicId;
    }
    
    public void setTopicId(int topicId) {
        this.topicId = topicId;
    }
    
    public int getBoardId() {
        return boardId;
    }
    
    public void setBoardId(int boardId) {
        this.boardId = boardId;
    }
}

⌨️ 快捷键说明

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