Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What does it mean by declaring public class A: B

Tags:

c#

This maybe a stupid question, but what does it mean by declaring this:

public class A: B{


}

I understand inheritance, I am just getting use to the C# syntax

like image 391
RKM Avatar asked Mar 24 '11 13:03

RKM


1 Answers

It indicates that the class either inherits from class B, or implements interface B.

like image 149
Mike Cole Avatar answered Dec 01 '22 03:12

Mike Cole