Advertisement
Guest User

Untitled

a guest
Jun 26th, 2017
53
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
CSS 0.36 KB | None | 0 0
  1. public class Pigs{
  2.  
  3. private int x;
  4.  
  5. public Pigs(int n){
  6.     x = n; 
  7.     }  
  8. public findthepig(){
  9.     return x;
  10.     }
  11. ____________________
  12. public class Pigsty{
  13.     public Pigsty(int n){
  14.     Pig[] pigsty = new Pig[n];
  15.     }
  16.     public int getthepig(){
  17.     return 0;
  18.     }
  19. _____________________
  20. public class Pigfarm{
  21.     public Pigfarm(int n){
  22.     Pigsty[] pigfarm = new Pigsty[n]
  23.     }
  24.     etc.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement