Beispiel #1
0
    static void Main()
    {
        TitleUnderlined myTitle = new TitleUnderlined();

        Console.Write("Enter X: ");
        int x = Convert.ToInt32(Console.ReadLine());

        Console.Write("Enter Y: ");
        int y = Convert.ToInt32(Console.ReadLine());

        Console.Write("Enter text: ");
        string t = Console.ReadLine();

        myTitle.SetX(x);
        myTitle.SetY(y);
        myTitle.SetText(t);
        myTitle.Display();

        Title mySecondTitle = new Title();

        mySecondTitle.SetX(x + 2);
        mySecondTitle.SetY(y + 3);
        mySecondTitle.SetText(t);
        mySecondTitle.Display();
    }
    static void Main()
    {
        Title t = new Title();

        t.Show();

        TitleUnderlined t2 = new TitleUnderlined();

        t2.SetX(30);
        t2.SetY(15);
        t2.SetText("Bye!");
        t2.Show();
    }
    static void Main()
    {
        Title t = new Title();

        // t.SetX(40);
        // t.SetY(12);
        // t.SetText("Hello!");
        t.Init();
        t.Show();

        TitleUnderlined t2 = new TitleUnderlined();

        t2.SetX(30);
        t2.SetY(15);
        t2.SetText("Bye!");
        t2.Show();
    }