Home » C# Programming » Interfaces

Which of the following is the correct way to implement the interface given below? interface IPerson { String FirstName { get; set; } }

Correct Answer: class Employee : IPerson { private String str; public String FirstName { get { return str; } set { str = value; } } }

← Previous Question Next Question→

Discussion & Comments

No comments yet. Be the first to comment!
Join Discussion