How do you inherit from a class in C#?
Answers were Sorted based on User's Feedback
Answer / venu gopal
Place a colon and then the name of the base class. Notice
that it?s double colon in C++.
| Is This Answer Correct ? | 4 Yes | 0 No |
Answer / shadab
write first derived class name after that colon(:)and then
write super class name.
for example
class Base
{
}
class Derived:Base
{
}
for more information u can visit
http://www.shadab-programminghelp.blogspot.com
| Is This Answer Correct ? | 2 Yes | 0 No |
What is c# console application?
What language is c# similar to?
Is it possible to inherit multiple interfaces?
How do you generate documentation from the C# file commented properly with a command-line compiler?
datagridview using updata in windows c#
List some of the basic string operation?
How to parse a date time string?
Write a C# program to find the Factorial of n
What is array collection?
There are a class A. Another class B derived from it. Now if I do A a = new B(); and B b = new B(); What will happen in both the statements. And what is the difference between these two statements.
Can delegates be used as callbacks?
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
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)