Order the answer to: Javaa) Provide the UML diagram for the following program. [ 0.5 Mark ]class Parent { public void get

Academic Help net programming Order the answer to: Javaa) Provide the UML diagram for the following program. [ 0.5 Mark ]class Parent { public void get

net programming

Order the answer to: Javaa) Provide the UML diagram for the following program. [ 0.5 Mark ]class Parent { public void get

Question Javaa) Provide the UML diagram for the following program. [ 0.5 Mark ]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(); }
     }
Answer:
b) Explain the relationship between the sub class constructorand the super class constructor. Explain different possibilitieswith the of anexample.        [ 0.5 Mark ]
Answer:

Attached

Subject net programming
Ready to try a high quality writing service? Get a discount here