My question is does the orders in these lines of constructor ... Shipment (double w, double h, double d, double m, double c){ super (w,h,d,m) have any effect to the output?
Multi level hierarchy refers to a types of inheritance where a class is derived from another class ,which is also derived from another and so on.This form a chain of inheritance where a subclass inherits from another super class and another super class inherits from super class...
Here what i have learnt is that a sub class can be a super class of another subclass. like boxweight is a sub class of box and the boxweight becomes a super class of shipment so shipment is a subclass of boxweight. this is possible by using super
My question is does the orders in these lines of constructor ... Shipment (double w, double h, double d, double m, double c){
super (w,h,d,m) have any effect to the output?
yes, make sure the same order is used in both the declaration and also when calling the constructor using super. Sorry for late response
Multi level hierarchy refers to a types of inheritance where a class is derived from another class ,which is also derived from another and so on.This form a chain of inheritance where a subclass inherits from another super class and another super class inherits from super class...
Here what i have learnt is that a sub class can be a super class of another subclass. like boxweight is a sub class of box and the boxweight becomes a super class of shipment so shipment is a subclass of boxweight. this is possible by using super