What Will Be The Correct Way To Implement The Interface In The #431
What will be the correct way to implement the interface in the following C# code? </p> <pre><code class="language-csharp" line="1"> interface abc { string name { get; set; } }</code></pre>
This multiple choice question (MCQ) is related to the book/course gs gs108 CSharp. It can also be found in gs gs108 Object Oriented Concepts - Interfaces Implementation - Quiz No.1.
What will be the correct way to implement the interface in the following C# code?
interface abc { string name { get; set; } }
class emp :employee { private string str; public string firstname; { get { return str; } set { str = value; } } }
class emp :implements person { private string str; public string firstname { get { return str; } set { str = value; } } }
class emp: implements person { private string str; public string person.firstname { get { return str; } set { str = value; } } }
None of the mentioned