Download Computer Science - Diagnostic Test and more Study notes Computer Science in PDF only on Docsity!
Computer Science Diagnostic Test 21. Design an interface Cat. The interface must include the functions meow, purr, clean, hungry, isPurring, isClean, isSleeping, and isHungry. interface Cat { public String meow(); public String purr() public void clean(); public void hungry(); public boolean isPurring(); public boolean isClean(); public boolean isSleeping(); public boolean isHungry();