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
Define interface class in c#?
What are the features of c#?
Difference between value and reference type.
How do I format a string in c#?
Explain the constructor in c#.
What is the xml document structure?
What is better C# or VB.NET?
What does mean c#?
What is console programming language?
What is gac? How to put assembly in gac?
Difference between value and reference type. What are value types and reference types?
What are namespaces, and how they are used?