Correct Way To Define Object Of Sample Class In Which C Code #199
Correct way to define object of sample class in which C# code will work correctly is:</p> <pre><code class="language-csharp" line="1"> class abc { int i; float k; public abc(int ii, float kk) { i = ii; k = kk; } } </code></pre>
This multiple choice question (MCQ) is related to the book/course gs gs108 CSharp. It can also be found in gs gs108 Classes - Constructors in Class - Quiz No.1.
Correct way to define object of sample class in which C# code will work correctly is:
class abc { int i; float k; public abc(int ii, float kk) { i = ii; k = kk; } }
abc s1 = new abc(1);
abc s1 = new abc();
abc s2 = new abc(1.4f);
abc s2 = new abc(1, 1.4f);