Computer Science, asked by prithiAD, 5 hours ago

Write a java program to show the implementation of constructor overloading​

Answers

Answered by atharvkotwalno1
0

Answer:

// An example class to understand need of // constructor overloading. class Box { double width, height,depth; // constructor used when all dimensions // specified Box(double w, double h, double d) { width = w; height = h; depth = d; } // compute and return volume double volume() { return width * height * depth; } }

Similar questions