June 2018
Intermediate to advanced
596 pages
12h 39m
English
We will first create JavaBean classes for Student, Course, and Teacher. Since both student and teacher are people, we will create a new class called Person and have Student and Teacher classes extend it. Create these JavaBeans in the packt.book.jee.eclipse.ch4.beans package as follows.
The code for the Course bean will be as follows:
package packt.book.jee.eclipse.ch4.bean; public class Course { private int id; private String name; private int credits; public int getId() { return id; } public void setId(int id) { this.id = id; } public String getName() { return name; } public void setName(String name) { this.name = name; } public int getCredits() { return credits; } public void setCredits(int credits) { ...Read now
Unlock full access