예제 #1
0
 public CKlase(string name, int skaicius, string zodis, double doubleSkaicius, AKlase aObjektas) : base(name)
 {
     Skaicius       = skaicius;
     Zodis          = zodis;
     DoubleSkaicius = doubleSkaicius;
     AObjektas      = aObjektas;
 }
예제 #2
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();
        }
예제 #3
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();
        }
예제 #4
0
 public CKlase(int skaicius, string zodis, double doubleSk, AKlase obj) : this(skaicius, zodis)
 {
     DoubleSkaicius = doubleSk;
     AObjektas      = obj;
 }
예제 #5
0
 public CKlase(int skaicius, string zodis, double doubleSkaicius, AKlase aObjekstas) : this(skaicius, zodis)
 {
     DoubleSkaicius = doubleSkaicius;
     AObjekstas     = aObjekstas;
 }