Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Section C 1.1 Answer the following questions based on the program below. public classTesti public static void main(String] args) ( A aa-new A (3); public

image text in transcribed

Section C 1.1 Answer the following questions based on the program below. public classTesti public static void main(String] args) ( A aa-new A (3); public class A extends BI public A (int t) System.out.println ("A's constructor is invoked") public class Bl public BO System.out.println ("B's constructor is invoked") (i What is the output of the program? (ii) Identity the superclass. (ii) Identity the subclass (3 marks) (1 marks) (1 marks) 1.2. Design a class named Person and its two subclasses named Student and Employee. Make Faculty and Staff subclasss of Employee. A person has a name, address. phoneno, and email address A student has a class status(junior, senior). An Employee has an office. salary, and date hired. A faculty member has office hours and a rank. A staff member has a title. Override the display) method in each class to display the class name and the person's name a Draw the UML diagram for the classes. (6 marks) b. Implement the classes. (10 marks)

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Processing

Authors: David M. Kroenke

12th Edition International Edition

1292023422, 978-1292023427

More Books

Students also viewed these Databases questions