Beispiel #1
0
        static void Main(string[] args)
        {
            var p = new Person {
                Name = "Philipp", Age = 30
            };

            var p2 = new Person {
                Name = "Laura", Age = 29
            };

            p.SayHello(p2);
        }
Beispiel #2
0
        static void Main(string[] args)
        {
            var p = new Person {
                Name = "jhon", Age = 22
            };

            p.SayHello();
            var p2 = new Person {
                Name = "Maya", Age = 17
            };

            p2.SayHelloTo(p);
        }