adplus-dvertising
frame-decoration

Question

Choose the correct statement about the following code snippet in C#.NET:
interface abc
 {
     String FirstName
     {
         get;
         set;
     }
    String LastName
    {
        get;
        set;
    }
    void print();
    void stock();
    int fun();
}

a.

Functions should be declared inside an interface

b.

It is workable code

c.

Properties cannot be declared inside an interface

d.

None of the mentioned

Answer: (b).It is workable code

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. Choose the correct statement about the following code snippet in C#.NET: