Co-Authored-By: Claude Sonnet 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_017ic4b5DfjBGLBr7F5km2AN
11 lines
195 B
Java
11 lines
195 B
Java
class Animal {
|
|
Animal() { }
|
|
}
|
|
|
|
class Puppy extends Animal {
|
|
Puppy(String name) {
|
|
if (name.isBlank()) throw new IllegalArgumentException("name required");
|
|
super();
|
|
}
|
|
}
|