Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- interface color{
- public void cat();
- public void dog();
- }
- class Animals_color implements color{
- public void cat(){
- System.out.println(" is color orange");
- }
- public void dog(){
- System.out.println(" is color balack and white");
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement