Select the correct option to test your answer:
Computer
Classes And Objects In C Sharp
Difficulty: Medium
What will be the output of the following C# code? class maths { public maths() { Console.WriteLine("constructor 1 :"); } public maths(int x) { int p = 2; int u; u = p + x; Console.WriteLine("constructor 2: " +u); } } class Program { static void Main(string[] args) { maths k = new maths(4); maths t = new maths(); Console.ReadLine(); } }
More Computer Questions
Which function returns the arc sine in the range [-pi/2, +pi/2] radians?
In R, which package is commonly used for natural language processing (NLP)?
Odd-even sort is also known as . . . . . . . .
What will be the output of the following Java program? class Output { public static void main(String args[]) { double x = 3.14; int y = (int) Math.toRadians(x); System.out.print(y); } }
Find the output of the following program. void main() { int array[10]; int *i = &array[2], *j = &array[5]; int diff = j-i; printf("%d", diff); }