Curioustab
Aptitude
General Knowledge
Verbal Reasoning
Computer Science
Interview
Aptitude
General Knowledge
Verbal Reasoning
Computer Science
Interview
Home
»
C# Programming
»
Interfaces
Which of the following is the correct implementation of the interface given below? interface IMyInterface { double MyFun(Single i); }
class MyClass { double MyFun(Single i) as IMyInterface.MyFun { // Some code } }
class MyClass { MyFun (Single i) As Double { // Some code } }
class MyClass: implements IMyInterface { double fun(Single si) implements IMyInterface.MyFun() { //Some code } }
class MyClass: IMyInterface { double IMyInterface.MyFun(Single i) { // Some code } }
Correct Answer:
class MyClass: IMyInterface { double IMyInterface.MyFun(Single i) { // Some code } }
← Previous Question
Next Question→
More Questions from
Interfaces
Which of the following statements is correct about an interface used in C#.NET?
Which of the following is the correct way to implement the interface given below? interface IPerson { String FirstName { get; set; } }
Which of the following statements is correct about an interface used in C#.NET?
Which of the following statements are correct about an interface in C#.NET? A class can implement multiple interfaces. Structures cannot inherit a class but can implement an interface. In C#.NET, : is used to signify that a class member implements a specific interface. An interface can implement multiple classes. The static attribute can be used with a method that implements an interface declaration.
Discussion & Comments
No comments yet. Be the first to comment!
Name:
Comment:
Post Comment
Join Discussion
Discussion & Comments