Example #1
0
        static void Main(string[] args)
        {
            var name = new AKlase("mama");

            Console.WriteLine(name.NameKodas(2));
            Console.WriteLine(name.NameMetodas());
            Console.WriteLine();
            var nameB = new BKlase("mama");

            Console.WriteLine(nameB.ZodisBeBalsiu());
            Console.WriteLine(nameB.ZodisBePriebalsiu());
            Console.WriteLine(nameB.ZodisSuPakeistomisBalsemis('d'));
            Console.WriteLine(nameB.ZodisSuPakeistomisPriebalsemis(1));
            Console.ReadKey();
        }
Example #2
0
        static void Main(string[] args)
        {
            var a = new AKlase("mama");

            Console.WriteLine($"NEW NAME: {a.NameMetodas()}");
            Console.WriteLine($"NAME KODAS: {a.NameKodas(2)}");

            var b = new BKlase("namas");

            Console.WriteLine($"NAME KODAS: {b.NameKodas(2)}");
            Console.WriteLine($"ZODIS BE BALSIU: {b.ZodisBeBalsiu()}");
            Console.WriteLine($"ZODIS BE PRIEBALSIU: {b.ZodisBePriebalsiu()}");
            Console.WriteLine($"ZODIS SU PAKEISTOMIS BALSEMIS: {b.ZodisSuPakeistomisBalsemis('o')}");
            Console.WriteLine($"ZODIS SU PAKEISTOMIS PRIEBALSEMIS: {b.ZodisSuPakeistomisPriebalsemis(2)}");
            ExitApp();
        }