Opening book details…
Can I read Java OOP Concepts and Programs on EtoBox?
Java OOP Concepts and Programs by Zakwan Nasir is a document available to read on EtoBox.
What is Java OOP Concepts and Programs about?
The document describes two classes - D2point and D3point - that define points in a plane and space respectively. D2point stores x and y coordinates, and calculates 2D distance between points. D3point adds a z coordinate and calculates 3D distance. Constructors initialize coordinate values, and distance methods return the distance between the current point and another passed as a parameter.
- Author
- Zakwan Nasir
- Language
- EN