Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package samkough.main;
- public class CatMeows
- {
- public static void main(String args[])
- {
- CatMeowsTest cmt = new CatMeowsTest();
- cmt.meow();
- System.out.println(" ");
- cmt.purr();
- System.out.println(" ");
- cmt.scratch();
- System.out.println(" ");
- }
- }
- -----------------------------------------------------------------------------------------------------------------
- package samkough.main;
- public class CatMeowsTest
- {
- void meow()
- {
- System.out.println("meow");
- }
- void purr()
- {
- System.out.println("purr");
- }
- void scratch()
- {
- System.out.println("'scratches'");
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment