Consider the following pieces of C# code:
a. interface I1 {/*......*/}
interface I2 {/*......*/}
struct Point : I1,I2 {/* ..... */}
b. struct Book{
int bookId;
struct Book b;
}
c. using M=Mystruct;
struct MyStruct{
int id;
}
class MyClass{
static void Main(string[] args){
M m = new M();
}
}
d. struct Sample{
Sample ref x;
}
Which of the above are correct?
Choose one of the options below.
a, c and d are right
a only right
a and c are right
d only wrong
None of the listed options
Answers were Sorted based on User's Feedback
What?s the difference between // comments, /* */ comments and /// comments?
Is class reference type c#?
What is data hiding in c#?
How to open a new form on button click in Windows forms?
What are the different ways of method can be overloaded?
What is the difference between disposing of () and finalize() methods in c#?
What are classes in c#?
What is a HashCode?
What is the difference between namespace and class?
What is the use of 0 in c#?
What are the 3 types of comments in c#?
Any exceptions are there which are not caught by any catch blocks? what are they?