Tell me Asp.net Method Overriding.
Answers were Sorted based on User's Feedback
Answer / snehalata
Method overriding means having a different implementation
of the same method in the inherited class. These two
methods would have the same signature, but different
implementation. One of these would exist in the base class
and another in the derived class. These cannot exist in the
same class.
Overriding methods
Overriding method definitions
In a derived class, if you include a method definition that
has the same name and exactly the same number and types of
parameters as a method already defined in the base class,
this new definition replaces the old definition of the
method.
| Is This Answer Correct ? | 4 Yes | 1 No |
Answer / kkk
same method and same args in base and derived classes simple.
class a
{
public virtual void m1(int a,int b)
{}
}
class b:a
{
public override void m1(int a,int b){}
}
| Is This Answer Correct ? | 3 Yes | 0 No |
Answer / sarang
Overriding method must not throw a new or broader exception
than the method in base class.
Return type must not be more restrictitive than method in
base class on which overriding is done.
| Is This Answer Correct ? | 0 Yes | 1 No |
what is a virtual class?
What is the appSettings Section in the web.config file?
Name the namespace which is used by ado.net?
Give an example of what might be best suited to place in the application_start and session_start subroutines?
how to implement some securty aspect in our application i.e 1.cookie poisioning. 2.data encryption. 3.forcefull browsing 4.sql/code injection 5.securing web app by using web services ........my question is how to implement these thing in our application is this done by hard coding or by help of some tool
When is validation done on the client? How does client-side validation improve the efficiency of an application?
Can you clarified A Web service can only be written in .NET or not?
We are using Jscriopt validations and at clint site javascript is not running that time validation would work? if yes then how it would behave?
How many types are there session
I have created a configuration setting in my web.config and have kept it at the root level. How do I prevent it from being overridden by another web.config that appears lower in the hierarchy?
How many rounds are there for a software programmer to clear interview in any IT industries(MNC).
What is data control in asp.net?
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)