From 166b4a60952d302b9ab758c3f16d3f19475c75c2 Mon Sep 17 00:00:00 2001 From: Chenx221 Date: Fri, 9 Jun 2023 20:09:55 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E8=AF=BE=E7=A8=8B=E5=AE=9E?= =?UTF-8?q?=E4=BD=93=E7=B1=BB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Chenx221 --- .../main/java/cyou/chenx221/pojo/course.java | 48 +++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 project2/src/main/java/cyou/chenx221/pojo/course.java diff --git a/project2/src/main/java/cyou/chenx221/pojo/course.java b/project2/src/main/java/cyou/chenx221/pojo/course.java new file mode 100644 index 0000000..8f212f4 --- /dev/null +++ b/project2/src/main/java/cyou/chenx221/pojo/course.java @@ -0,0 +1,48 @@ +package cyou.chenx221.pojo; + +public class course { + private Integer CourseID; //课程ID + private String CourseName; //课程名 + private String Description; //课程描述 + + public course(String courseName, String description) { + CourseName = courseName; + Description = description; + } + + public course() { + } + + public Integer getCourseID() { + return CourseID; + } + + public void setCourseID(Integer courseID) { + CourseID = courseID; + } + + public String getCourseName() { + return CourseName; + } + + public void setCourseName(String courseName) { + CourseName = courseName; + } + + public String getDescription() { + return Description; + } + + public void setDescription(String description) { + Description = description; + } + + @Override + public String toString() { + return "course{" + + "CourseID=" + CourseID + + ", CourseName='" + CourseName + '\'' + + ", Description='" + Description + '\'' + + '}'; + } +}