示例#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);
        }
示例#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);
        }
示例#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);
        }