Page 1 of 1

Consider the following code. What is the output? class x { public void display() { Console.WriteLine("display1"); ] publ

Posted: Fri Apr 29, 2022 7:08 am
by answerhappygod
Consider The Following Code What Is The Output Class X Public Void Display Console Writeline Display1 Publ 1
Consider The Following Code What Is The Output Class X Public Void Display Console Writeline Display1 Publ 1 (80.36 KiB) Viewed 22 times
Consider the following code. What is the output? class x { public void display() { Console.WriteLine("display1"); ] public void display(double b) { Console.WriteLine("display2"); ] } class y:x { public void display() { Console.WriteLine("display3"); ] public void display(string b) { Console.WriteLine("display4"); ] 3 class Program static void Main(string[] args) y an Obj = new y(); an Obj.display(); Console.ReadKey();