9 lines
178 B
Plaintext
9 lines
178 B
Plaintext
|
// A sample class
|
||
|
class Human extends Mammal implements Humanoid {
|
||
|
private int age = 0;
|
||
|
public void birthday() {
|
||
|
age++;
|
||
|
System.out.println('Happy Birthday!');
|
||
|
}
|
||
|
}
|