MCPcopy Create free account
hub / github.com/careercup/ctci / Circle

Class Circle

java/Chapter 14/Introduction/Circle.java:3–12  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1package Introduction;
2
3public class Circle extends Shape {
4 private double rad = 5;
5 public void printMe() {
6 System.out.println("I am a circle.");
7 }
8
9 public double computeArea() {
10 return rad * rad * 3.15;
11 }
12}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected