Thursday, February 17, 2011

Virtual and Override methods in C#

You can have methods in your base class with virtual signature and if you want to use the same method in your child class you need to use the term override.

public class a
{
public virtual int methodA()
{}
}

public class B : a
{
public override int methodA()
{}
}





No comments:

Post a Comment

Retrieving Calendar of a Bookable Resource in Dynamics

There are occasions where we need to retrieve working days and working times of a resource in Dynamics grammatically. This is quite possible...