Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- namespace ConsoleApplication7
- {
- class Program
- {
- static void Main(string[] args)
- {
- //Zwierze z = new Zwierze();
- Kot k = new Kot();
- Console.WriteLine();
- Console.ReadKey();
- }
- }
- class Zwierze
- {
- public string gatunek;
- public Zwierze()
- {
- gatunek = "nieznany";
- }
- public Zwierze(String gat)
- {
- gatunek = gat;
- }
- }
- class Kot : Zwierze
- {
- public Kot() : base("Manx")
- {
- ;
- }
- public Kot() : this("Kociak")
- {
- ;
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment