1. In Java (and OOP), Inheritance includes the concept of super class that is parent class and sub class that is derived class. Explain What is a super class in Java? What is a sub or derived class in Java?
2. Code a simple class in JAVA classed "Student." Your class must consist of the followings: •Variables (name, age, addressStreet, city, state, zip, country)
Setter and Getter methods
For Example:
public void setName(String name) {
this.name = name;
}
public String getName() {
return name;
}