Inheritance in C#.net

Inheritance is a property that inherits the base class properties into 
child class.

Syntax:-
[Access Modifier] class ClassName : baseclassname
{
}

Example:-
public class BaseClass : ChildClass
    {
       
    }


Inheritance in C#.net Inheritance in C#.net Reviewed by NEERAJ SRIVASTAVA on 9:21:00 AM Rating: 5

No comments:

Powered by Blogger.