About this document
Java Constructor Exam Preparation Guide by Suriati Jamalludin is a document available to read on EtoBox.
The document discusses designing a Circle class with constructors and methods to create Circle objects with different radii and display their radius and area. Three Circle objects are constructed with radii of 2.0, 12, and 24 and their radius and area are displayed. The Circle class includes a no-arg constructor that sets the default radius to 1 and a getArea() method to return the area.
- Author
- Suriati Jamalludin
- Language
- EN