Question: Computer Programming II CS141(Java) Mention the appropriate relationship between following classes: HODStaffMember CarFerrari Student-Address BankAccountFixedAccount House-Building Department-Teacher TrafficTrafficSign Provide the UML diagram for the following

Computer Programming II CS141(Java)

  1. Mention the appropriate relationship between following classes:

  1. HODStaffMember
  2. CarFerrari
  3. Student-Address
  4. BankAccountFixedAccount
  5. House-Building
  6. Department-Teacher
  7. TrafficTrafficSign

 
  1. Provide the UML diagram for the following program.
 
 class Parent 
 {
 public void getBike()
 {
 System.out.println("Suzuki Bike");
 }
 }
 class Child extends Parent 
 {
 public void getCar()
 {
 System.out.println("Swift car");
 }
 }
 class inheritance 
 {
 public static void main(String args[])
 {
 Parent p = new Parent();
 p.getBike();
 Child c = new Child();
 c.getBike();
 c.getCar();
 }

}

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!