Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class Zwierze
- {
- private string name, colour;
- public Zwierze(string name, string colour) { }
- public void zna(Zwierze z) { }
- public Zwierze kopia(Zwierze z) { }
- }
- public class Krolik : Zwierze
- {
- public Krolik(string name, string colour) : base(name, colour) { }
- }
- public class Lis:Zwierze
- {
- public Lis(string name, string colour) : base(name, colour) { }
- }
- public class Las
- {
- private int wymiar1, wymiar2;
- public Las(int x, int y) { }
- public dodajMieszkanca(Zwierze z) { }
- public int policzZwierzeta() { }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement