reply.java

来自「用jsp写的毕业设计管理系统」· Java 代码 · 共 38 行

JAVA
38
字号
/*
 * 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 + =
减小字号Ctrl + -
显示快捷键?