Beispiel #1
0
        static void Main(string[] args)
        {
            Note FirstNote  = new Note();
            Note SecondNote = new Note("Igram novi COD:Warzone", "DrImportance", "1.");
            Note ThirdNote  = new Note("Vani pada snijeg :-)", "Weather.exe");

            Console.WriteLine(FirstNote.text + FirstNote.author);
            Console.WriteLine(SecondNote.text + SecondNote.author);
            Console.WriteLine(ThirdNote.text + ThirdNote.author);
            Console.WriteLine(FirstNote.ToString());
            TimeNote timenote = new TimeNote();

            Console.WriteLine(timenote.ToString());
        }
Beispiel #2
0
        static void Main(string[] args)
        {
            Note note1;

            note1 = new Note();
            Console.WriteLine(note1.getAuthor());
            Console.WriteLine(note1.getText());

            Note note2;

            note2 = new Note("Antigona", 1);
            Console.WriteLine(note2.getAuthor());
            Console.WriteLine(note2.getText());

            TimeNote timenote = new TimeNote();

            Console.WriteLine(timenote.ToString());
            Console.ReadLine();
        }
Beispiel #3
0
        static void Main(string[] args)
        {
            Note FirstNote = new Note();

            Console.WriteLine(FirstNote.getAuthor());
            Console.WriteLine(FirstNote.getText());
            Note SecondNote = new Note("Korona svijetom hara");

            Console.WriteLine(SecondNote.getAuthor());
            Console.WriteLine(SecondNote.getText());
            Note ThirdNote = new Note("Potresi u Hrvatskoj", 5, "Marko Marulić");

            Console.WriteLine(ThirdNote.getAuthor());
            Console.WriteLine(ThirdNote.getText());
            Console.WriteLine(ThirdNote.ToString());
            TimeNote timeNote = new TimeNote();

            Console.WriteLine(timeNote.ToString());
        }