Promgraming


1. (1) There are many different concepts associated with OOP (Object-oriented programming) like: · Class · Object · Inheritance · Polymorphism · Abstraction · Encapsulation · Interface · Method Overloading · Method Overriding · …and others QUESTION: Pick FIVE of the above listed OOP concepts and describe each in details (50 points) 2. (2) In Java (and OOP), Inheritance involves the concept of super class (parent class) and sub class (derived class). What is a super class in Java? What is a sub or derived class in Java? (10 points) (3) 3. Code a simple class in JAVA classed “Student.” Your class must contain the followings (20 points): · Variables (name, age, addressStreet, city, state, zip, country) · Setter and Getter methods Example: public void setName(String name) { this.name = name; } public String getName() { return name; } 4. (4) Code a short JAVA program that demonstrates Inheritance (20 points). HINT: · To demonstrate true OOP inheritance, your code must include a super (parent) class and a sub class (derived class) · As an example, class Student could be a super class while class GraduateStudent is a sub class that inherits from Student class. · In your subclass (i.e. GraduateStudent), you must include the JAVA inheritance keyword that shows that a class inherits from another.

Request for Solution File

Ask an Expert for Answer!!
JAVA Programming: Promgraming
Reference No:- TGS0507876

Expected delivery within 24 Hours