The Object-Oriented Thought Process
The Object-Oriented Thought Process
The Object-Oriented Thought Process
Thought Process
Chapter 06
class SomeMath {
public int add(int a, int b) {
return a + b;
}
}
Wrapping Nonportable Code
class Sound {
public void beep() {
System.out.println(“\007”);
}
}
Wrapping Existing Classes