MCPcopy Index your code
hub / github.com/BruceEckel/OnJava8-Examples / scrub

Method scrub

reuse/Detergent.java:23–26  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

21public class Detergent extends Cleanser {
22 // Change a method:
23 @Override public void scrub() {
24 append(" Detergent.scrub()");
25 super.scrub(); // Call base-class version
26 }
27 // Add methods to the interface:
28 public void foam() { append(" foam()"); }
29 // Test the new class:

Callers 1

mainMethod · 0.95

Calls 2

appendMethod · 0.80
scrubMethod · 0.45

Tested by

no test coverage detected