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
Answer Posted / niloy roy
Only a is the right
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
What is ac callback?
What do you mean by the delegate in c#?
Why we use get and set method in c#?
How can I use .NET components from COM programs?
Describe an interface class?
why delegate is type safe?
Can abstract classes be final?
What are the steps to make an assembly to public?
What are access modifiers used for?
What is single dimensional array in c#?
What are the different types of comments in c#?
What does dbml mean in texting?
Is struct object oriented?
What is the do while loop code?
Why do we need to override in c#?