Question: Visual programming (choose the correct answer) 25 Given the following C# code. Which one of the following statements is correct: 1 class Mainclass { static
Visual programming (choose the correct answer)


25 Given the following C# code. Which one of the following statements is correct: 1 class Mainclass { static void Main() { MaxMinclass m=new MaxMinclass(5,3); Console.WriteLine(m.Min_Num(); } O None of the choices is correct The new keyword creates a new object of the MaxMinClass The new keyword creates a new object of the Main Class The new keyword creates a new method of the MainClass class Mainclass { static void Main() { MaxMinclass m=new MaxMinclass(5,3); Console.WriteLine(m.Min_Num()); } } class MaxMinclass { int a=0; int b=0; public MaxMinclass(int a, int b) { this.a=a; this.b=b; } public int Min_Num( ) { int min=a; if(b
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
