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)
- Mention the appropriate relationship between following classes:
- HODStaffMember
- CarFerrari
- Student-Address
- BankAccountFixedAccount
- House-Building
- Department-Teacher
- TrafficTrafficSign
- 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
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
