Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class Pigs{
- private int x;
- public Pigs(int n){
- x = n;
- }
- public findthepig(){
- return x;
- }
- ____________________
- public class Pigsty{
- public Pigsty(int n){
- Pig[] pigsty = new Pig[n];
- }
- public int getthepig(){
- return 0;
- }
- _____________________
- public class Pigfarm{
- public Pigfarm(int n){
- Pigsty[] pigfarm = new Pigsty[n]
- }
- etc.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement