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 / b2balaji
shall u give reason for this answer?
| Is This Answer Correct ? | 0 Yes | 2 No |
Post New Answer View All Answers
Does c# have its own class library?
What is verbatim string?
Is inheritance possible in c sharp?
How many root nodes are there in an xml document?
What is type cast in C#?
How do I simulate optional parameters to com calls?
What is the difference between writeline and write in c#?
What is difference between gridview and form view?
Is c# a keyword?
Why we need get set property in c#?
What is cls, cts and clr in net?
Which attribute is used in order that the method can be used as webservice?
What is boolean method?
Can we inherit singleton class in c#?
Hi to all..I have to create an intranet application on C#.NET windows Application so please please let can you people help me as iam new in .NET and if u have any samples or website address from where i can get sample please let know.