Consider the following code. What is the output? class x { public void display() { Console.WriteLine("display1"); ] publ
-
answerhappygod
- Site Admin
- Posts: 899604
- Joined: Mon Aug 02, 2021 8:13 am
Consider the following code. What is the output? class x { public void display() { Console.WriteLine("display1"); ] publ
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();
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!