What Will Be The Correct Statement In The Following C Codep Pre #427
What will be the Correct statement in the following C# code?</p> <pre><code class="language-csharp" line="1"> interface abc { String FirstName { get; set; } String LastName { get; set; } void print(); void stock(); int fun(); } </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 statement in the following C# code?
interface abc { String FirstName { get; set; } String LastName { get; set; } void print(); void stock(); int fun(); }
Functions should be declared inside an interface
It is workable code
Properties cannot be declared inside an interface
None of the mentioned