Dotnet Interview Questions

Showing posts with label virtual funcion in c#. Show all posts
Showing posts with label virtual funcion in c#. Show all posts

Saturday, 15 October 2011

How to declare a pure virtual function in C# ?

Firstly, the class must always be declared abstract.
Secondly, the method must be declared abstract.
The following is a simple example of an abstract method:
abstract class AbstractClass
{
   public abstract void AbstractMethod();
}
Posted by dotnet concepts at 02:15 No comments:
Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest
Labels: virtual funcion in c#
Older Posts Home
Subscribe to: Posts (Atom)

Blog Archive

  • ▼  2020 (2)
    • ▼  July (2)
      • Angular Building Blocks
      • Single Page Application
  • ►  2018 (1)
    • ►  May (1)
  • ►  2017 (2)
    • ►  January (2)
  • ►  2016 (3)
    • ►  July (3)
  • ►  2015 (4)
    • ►  September (1)
    • ►  April (2)
    • ►  March (1)
  • ►  2014 (3)
    • ►  April (1)
    • ►  January (2)
  • ►  2013 (10)
    • ►  December (5)
    • ►  November (1)
    • ►  June (1)
    • ►  May (1)
    • ►  February (1)
    • ►  January (1)
  • ►  2012 (7)
    • ►  December (2)
    • ►  November (4)
    • ►  March (1)
  • ►  2011 (46)
    • ►  November (6)
    • ►  October (14)
    • ►  September (26)

About Me

dotnet concepts
View my complete profile
Simple theme. Powered by Blogger.