Example #1
0
        public ActionResult Index()
        {
            Houseclass hc = new Houseclass();

            // polymorphism
            hc.Guestwelcomemessage();
            hc.purposeofVisit();
            // chaining examples
            Houseclass hcChain1 = new Houseclass(false);
            Houseclass hcChain2 = new Houseclass();
            // static class method call
            int ageMul = StaticClsPerson.calculate();

            return(View());
        }
Example #2
0
 static void Test()
 {
     StaticClsPerson.calculate();
 }