Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class Circle implements Shape {
- double radius;
- /* ... */
- public double diameter() {
- return 2 * radius;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement