Home / MCQ Bank / Computer
Computer Classes And Objects In C Sharp

Which C# statement should be added in function a() of class y to get output "i love csharp"? class x { public void a() { console.write("bye"); } } class y : x { public void a() { /* add statement here */ console.writeline(" i love csharp "); } } class program { static void main(string[] args) { y obj = new obj(); obj.a(); } }

Select the best option to verify your answer:
Show Correct Answer
Correct Answer: Option C • base.a()

Related Computer Questions

Which is not a new global attribute in HTML5? the slide that is used to introduce a topic and set the tone for the presentation is called the Which one of the following is an application for matching? What is the purpose of the FolderBrowserDialog control in a Windows Forms Application? What is the correct syntax to define a member function outside the class in C++?