Question: subject:java SECTION A. Answer ALL QUESTIONS based on your example to demonstrate an application of inheritance concept. Illustrate your example using ONE of the following

 subject:java SECTION A. Answer ALL QUESTIONS based on your example to

subject:java

SECTION A. Answer ALL QUESTIONS based on your example to demonstrate an application of inheritance concept. Illustrate your example using ONE of the following themes: 1- Customer of a shopping store 2- Vehicles or transport 3- Houses in residential area(s) 4- Electrical appliances in an electrical shop 5- Products in a grocery store Q1. Which theme is chosen to demonstrate the example? Draw class diagram(s) to demonstrate the example. Include appropriate fields and methods in the diagram(s). (10 marks) Q2. Name the superclass. (1 mark) Q3. Name the subclass. (1 mark) Q4. Write at least TWO constructor(s) for the superclass. (4 marks) 05. Write a constructor for the subclass, that demonstrates the use one of the superclass' constructors with parameter(s). (3 marks) 26. List the members of the subclass. (6 marks) SECTION B. Implement the superclass and subclass for the example using Java code

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!