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 is meant by generics in c#?
What is Abstraction?
8 Answers Google, HCL, IBM, MAHINDRA, Tech Mahindra,
If I have code like try { return; } catch { return; } finally { return; } from which block will the value will be returned. and try has been executed without any error.
Can a private virtual method can be overridden?
How can i load the text box and label at the runtime based on the existing text box and tabel
2 Answers Merrill Lynch, Patni,
What?s an interface class?
Explain about ODP.net
Is an interface a type c#?
Explain the concepts of cts and cls(common language specification).
What is static classes in c#?
Why do we use abstract class in c#?
Which is faster dictionary or list?
Visual Basic (800)
C Sharp (3816)
ASP.NET (3180)
VB.NET (461)
COM+ (79)
ADO.NET (717)
IIS (369)
MTS (11)
Crystal Reports (81)
BizTalk (89)
Dot Net (2435)
Exchange Server (362)
SharePoint (720)
WCF (340)
MS Office Microsoft (6963)
LINQ Language-Integrated Query (317)
WPF (371)
TypeScript (144)
Microsoft Related AllOther (311)