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 can be declared in an interface? Properties Methods Enumerations Events Structures
1, 3
1, 2, 4
3, 5
4, 5
Correct Answer:
1, 2, 4
← Previous Question
Next Question→
More Questions from
Interfaces
Which of the following statements is correct about the C#.NET code snippet given below? interface IPerson { String FirstName { get; set; } String LastName { get; set; } void Print(); void Stock(); int Fun(); }
Which of the following statements is correct about the C#.NET code snippet given below? interface IMyInterface { void fun1(); void fun2(); } class MyClass: IMyInterface { private int i; void IMyInterface.fun1() { // Some code } }
Which of the following is the correct implementation of the interface given below? interface IMyInterface { double MyFun(Single i); }
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