Showing Tag: "abstract" (Show all posts)

Difference between Abstract Class and Interface in C#

Posted by jineesh uvantavida on Monday, June 7, 2021,
Abstract Class
  • Its a way to achieve abstraction in c#.
  • Not instantiated directly
  • must contain at least one abstract method.
  • used to define base class.
  • contains both declaration and definition.
  • contains constructor.
  • it can contain static members
  • contains different types of access modifiers like public, private, protected.
  • performance of abstract class is fast.
  • used to implement core identity of class
  • a class can only use one abstract class.
  • if many implementation are same kind and common behavior, then it...

Continue reading ...
 
 

Translate This Page

 


Make a free website with Yola