interviews.dotnetthread.com

↑ Grab this Headline Animator

Wednesday, May 14, 2008

How to declare a property in an Interface?

DateTime DateOfBirth { get;set;}
int Age { get;set;}
string FirstName { get;set;}


As this is an Interface, so no implementation required only definition of properties are required. Implementation of these properties will be written into the class inherting this interface.

Submit this story to DotNetKicks

No comments:

Post a Comment

Post your comments/questions/feedback for this Article.

 

Latest Articles