Abstract Class and Interface
hi,
can explain why use abstract class , interface
, when use abstract class , interface
and 1 best use
please explain in simple words
waiting reply.....
here quick definition:-
what abstract class?
an abstract class special kind of class cannot instantiated. question why need class cannot instantiated? abstract class sub-classed (inherited from). in other words, allows other classes inherit cannot instantiated. advantage enforces hierarchies subclasses. in simple words, kind of contract forces subclasses carry on same hierarchies or standards.
what interface?
an interface not class. entity defined word interface. interface has no implementation; has signature or in other words, definition of methods without body. 1 of similarities abstract class, contract used define hierarchies subclasses or defines specific set of methods , arguments. main difference between them class can implement more 1 interface can inherit 1 abstract class. since c# doesn’t support multiple inheritance, interfaces used implement multiple inheritance.
you can read more on link:- http://www.codeproject.com/articles/11155/abstract-class-versus-interface
mark post answer if resolves issue.
everything sql server | experience inside sql server -mohammad nizamuddin
Visual Studio Languages , .NET Framework > Visual C#
Comments
Post a Comment