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

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
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

Post 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 21 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();
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply