Friday, 6 October 2017

Abstract Class

Abstract Class
 The purpose of an abstract class is to provide a common definition of a base class that multiple derived classes can share. Abstract class cannot be instantiated mean we cannot able to create an object of an abstract class but can be implemented to chilled classes like a common base class

Syntax
abstract class shapes
{
//your stuff
}

Generic in c#

Generic used to code reuse, type safety and increase performance, it consists in declaring a Type with Type parameter that will be instant...