Week3-CS111-Lab3 - 2 - Tuesday 1 PDF
Week3-CS111-Lab3 - 2 - Tuesday 1 PDF
Week3-CS111-Lab3 - 2 - Tuesday 1 PDF
Programming Language 2
Computer Science Department
2023
Lab Objectives:
In this lab, a student will practice
Assignment:
Write a Java program that demonstrate Inheritance, “is-A” relationship. Your program must
logically represent the relationship. DO NOT use the examples from the lecture
In your program, design and implement 3 classes ( one superclass and two subclasses ) in the
same package with all needed instance variables, accessor and mutators methods and
constructors; then write a test application to demonstrate the classes capabilities.