‘Extends’ and ‘Implements’ Java equivalents in C#

  • Animal is Base class
  • Diurnal is an Interface

the inheritance could be declared like this.

public class Lion : Animal, Diurnal
{

}

In C#, you can inherit one base class and can be multiple Interfaces.

One more tip, if you are making an Interface in C#, prefix it with I. eg IDiurnal

Leave a Comment

404 Not Found

Not Found

The requested URL was not found on this server.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.