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

📄 reply.java

📁 用jsp写的毕业设计管理系统
💻 JAVA
字号:
/*
 * s2jsp.lg.entity.Reply.java
 * 2007-7-18
 * 回复类
 */
package s2jsp.lg.entity;

public class Reply extends Tip {
    private int replyId  =  1;  // 唯一标志回复的id
    private int topicId  =  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 getReplyId() {
        return replyId;
    }
    
    public void setReplyId(int replyId) {
        this.replyId = replyId;
    }
    
    public int getTopicId() {
        return topicId;
    }
    
    public void setTopicId(int topicId) {
        this.topicId = topicId;
    }
}

⌨️ 快捷键说明

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