Example #1
0
        static void Main(string[] args)
        {
            Clovek Karel = new Clovek();

            Console.WriteLine("napis jmeno cloveka");
            Karel.Jmeno = Console.ReadLine();
            Console.WriteLine("napis prijmeni cloveka");
            Karel.Prijmeni = Console.ReadLine();
            Console.WriteLine("napis rodne cislo");
            Obcan Pepa = new Obcan(Karel, Console.ReadLine());

            Console.WriteLine("je to " + Pepa.Jmeno + " " + Pepa.Prijmeni + " " + Pepa.RodneCislo);
            Console.ReadLine();
        }
Example #2
0
 public Obcan(Clovek karel, string rodneCislo) : base(karel.Jmeno, karel.Prijmeni)
 {
     RodneCislo = rodneCislo;
 }