Question: 1- Scanner, Printer,Hard Disk, computer, laptop, keyboard, mouse, processor, personal computer analysis the class and draw relationship diagram Q2: Protected fields 1- create a class

1- Scanner, Printer,Hard Disk, computer, laptop, keyboard, mouse, processor, personal computer analysis the class and draw relationship diagram

Q2:

Protected fields

1- create a class person -person name -

person ID - person age

2- Add a method display()

3- Create 2 subclasse lecture - teacher

4- Use super keyword to pass the

parameters from From subclass to super class constructor

5- override the display () method in subclass lecture - teachers to display the fields to superclass

Q3:

Fruit-apple - orange - green apple -red

apple

Apple-orange- subclass of fruits

1-Draw inheritance hierarchy

2- which is legal - define flat - dynamic

types

Q4:

1- create class Car- Bus that implement

interface

2- add gear and speed in car - bus

3- change gear () method sets the gear

fuld by new gear

4- increase Speed() method increase the speed by newSpeed value

i want to solve the questions using bluej software

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!