If I want to override a method one of class A and in class b then how do you declare?
Answer / Supriya Gupta
To override a method from a base class (Class A) in a derived class (Class B), follow these steps:n1. Derive Class B from Class A using the ':' operator, e.g., 'public class B : A'n2. In Class B, declare the overriding method with the same signature as in Class A, but use the 'override' keyword before the return type.n3. Implement the overridden method.
| Is This Answer Correct ? | 0 Yes | 0 No |
Explain About Global.asax
Which string method is used for concatenation of two strings in c#?
List the different stages of a thread?
what is an exception in .net?
What is early binding and late binding
12 Answers ABC, Infosys, TATA,
Which is the base class in c#?
Does c# have primitives?
Explain About Assembly in .NET, types of assemblies, their difference, How to register into GAC. How to generate the strong names & its use.
Is c# good for games?
Why abstract class can not be instantiated?
What does the parameter Initial Catalog define inside Connection String?
What debugging tools come with the .NET SDK?
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)