Inheritance in C#

Home Forums C# Programming Inheritance in C#

This topic contains 1 reply, has 2 voices, and was last updated by  msaqib 12 years, 10 months ago.

  • Author
    Posts
  • #1926

    niklaesh
    Member

    Does C# have the same inheritance procedure as java have? Or you can inherit multiple classes into your class. and what is the procedure to inherit a class in your own class?

  • #3176

    msaqib
    Participant

    C#.NET supports single inheritance of classes. One class can be derived from a single class.

    Here MyFirstClass inherits MyFirstClass and its properties and methods.
    C#.NET does not support private and public inheritance just lik C++.
    C# supports abstract classes and abstract functions like in java. You can not make the instance of an abstract class.

You must be logged in to reply to this topic.

Share
Tweet
Share
Pin
+1