Generic selectors
Exact matches only
Search in title
Search in content
Post Type Selectors

Implement Inheritance in C#

PRINCIPLES OF PROGRAMMING LANGUAGES

PRACT. Implement inheritance in C#.
using System;
namespace ATC
{
    class CSE
    {
        public int age = 22;
    }
    class Child : CSE 
    {
        static void Main(string[] args)
        {
            Child obj = new Child();
            Console.WriteLine(“{0}”, obj.age);
            Console.ReadKey();
        }
    }
}

1 thought on “Implement Inheritance in C#”

  1. That is very fascinating, You are an overly skilled blogger.
    I’ve joined your rss feed and sit up for in the hunt for extra
    of your wonderful post. Additionally, I’ve shared your site in my social networks!

Leave a Comment