Beispiel #1
0
        static void Main()
        {
            var profile = new SocialMediaProfile("Niki");

            var creeper = new Creeper();
            profile.Accept(creeper);
            Console.WriteLine(profile);

            var stalker = new Stalker();
            profile.Accept(stalker);
            Console.WriteLine(profile);
        }
Beispiel #2
0
        static void Main()
        {
            var profile = new SocialMediaProfile("Niki");

            var creeper = new Creeper();

            profile.Accept(creeper);
            Console.WriteLine(profile);

            var stalker = new Stalker();

            profile.Accept(stalker);
            Console.WriteLine(profile);
        }
Beispiel #3
0
        static void Main()
        {
            var profile = new SocialMediaProfile("MitioPishtovaPrezident");

            var creeper = new Creeper();

            profile.Accept(creeper);
            Console.WriteLine(profile);

            var stalker = new Stalker();

            profile.Accept(stalker);
            Console.WriteLine(profile);
        }