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.
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.
No comments:
Post a Comment