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 statements is correct about Interfaces used in C#.NET?
All interfaces are derived from an Object class.
Interfaces can be inherited.
All interfaces are derived from an Object interface.
Interfaces can contain only method declaration.
Interfaces can contain static data and methods.
Correct Answer:
Interfaces can be inherited.
Next Question→
More Questions from
Interfaces
A class implements two interfaces each containing three methods. The class contains no instance data. Which of the following correctly indicate the size of the object created from this class?
Which of the following statements is correct?
Which of the following can implement an interface? Data Class Enum Structure Namespace
Which of the following statements is correct about an interface?
Which of the following statements is correct about the C#.NET code snippet given below? interface IMyInterface { void fun1(); int fun2(); } class MyClass: IMyInterface { void fun1() { } int IMyInterface.fun2() { } }
Which of the following statements are correct about an interface used in C#.NET? An interface can contain properties, methods and events. The keyword must implement forces implementation of an interface. Interfaces can be overloaded. Interfaces can be implemented by a class or a struct. Enhanced implementations of an interface can be developed without breaking existing code.
Which of the following can be declared in an interface? Properties Methods Enumerations Events Structures
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); }
Discussion & Comments
No comments yet. Be the first to comment!
Name:
Comment:
Post Comment
Join Discussion
Discussion & Comments