Which of the following statements is the correct about interfaces in - ProProfs Discuss
Topics
Products
Follow Us:

Which of the following statements is the correct about interfaces in C#?



A. Interfaces are declared using the interface keyword.
B. Interface methods are public by default.
C. Both of the above.
D. None of the above.

This question is part of SEMATEC C#1 Quiz
Asked by Asgari_sematec, Last updated: Jul 04, 2020

+ Answer
Request

3 Answers

mohsen

Mohsen

Answered Dec 05, 2017

Per Microsft's site linkhttps://docs.microsoft.com/en-us/dotnet/csharp/programming-guide/interfaces/
Interface members are automatically public, and they can't include any access modifiers. Members also can't bestatic.

C is Correct

 

John Adney

John Adney

Answered Dec 05, 2017

Per this link
https://docs.microsoft.com/en-us/dotnet/csharp/programming-guide/interfaces/
Interface members are automatically public, and they can't include any access modifiers. Members also can't bestatic.

I think C is corrct

 

asgari_sematec

Asgari_sematec

Answered Dec 05, 2017

Interfaces are declared using the interface keyword.

####
 

Search for Google images
Select a recommended image
Upload from your computer
Search for Google images
Select a recommended image
Upload from your computer
Search for Google images
Select a recommended image
Upload from your computer

Email Sent
We have sent an email to your address "" with instructions to reset your password.