C Sharp (C#) - Interfaces
Which of the following correctly implements the
Display() method explicitly from interface IShow in class Example?Display() method explicitly from interface IShow in class Example?void IShow.Display() without public. public void Display() { Console.WriteLine("Display called"); } and C are implicit implementations. public void IShow.Display() { Console.WriteLine("Display called"); } incorrectly uses public with explicit implementation.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions