Exemplo n.º 1
0
        private void button1_Click(object sender, EventArgs e)
        {
            MySecondClass msc = new MySecondClass();

            // msc.ShowMessage("Message");
            //MyThirdClass mtc = new MyThirdClass();
            msc.MyVoid();
        }
Exemplo n.º 2
0
        static void Main(string[] args)
        {
            MySecondClass mySecondClass = new MySecondClass();

            mySecondClass.ValueAssignmentWithoutArguments();
            Console.WriteLine($"Text line length: { mySecondClass.TextSize}");
            int k = 3;

            Console.WriteLine($"Text line element: {mySecondClass[k]}");
            string name = "Olya";

            mySecondClass.ValueAssignmentWithOneArgumen(name);
            Console.WriteLine(mySecondClass.number);

            Console.ReadKey();
        }