Home / MCQ Bank / Computer
Computer Functions And Methods In C Sharp

What will be the output of the following C# code snippet? class equality { int x; int y; boolean isequal() { return(x == y); } } class Output { public static void main(String args[]) { equality obj = new equality(); obj.x = 5; obj.y = 5; Console.WriteLine(obj.isequal()); } }

Select the best option to verify your answer:
Show Correct Answer
Correct Answer: Option B • true

Related Computer Questions

Which header file is used to include the vector container in C++ STL? In an absolute loading scheme, which loader function is accomplished by the loader The pointer used in the mblen() function points to the ______ How compile-time polymorphisms are implemented in C++? What is the purpose of the copy() method for sets?