Trace the O/p for a program on inheritance and Polymorphism.
3 classes A,B,C
A with two methods
public virtual SomeMethodA
public virtual SomemoreMethodA
B:A
overide virtual SomeMethodA
C:B
new Method SomeMethodA
override SomeMoreMethodA
main method
{
b new instance of B
b.SomeMethodA
b.SomeMoreMethodA
b1 new instance of C
b1.SomeMethodA
b1.SomeMoreMethodA
}
Answer / payal
call B's SomeMethodA
Call A's SomeMoreMethodA
call C's SomeMethodA
call C's SomeMoreMethodA
| Is This Answer Correct ? | 1 Yes | 0 No |
What is Implicit conversion in C#?
What is pure abstract class in c#?
please exaplain gridview and what are the process available for it. how to add the row number automatically? is it possible to add child controls ?
explain synchronous and asynchronous in C#
3 Answers AxSys, Mastek, Synechron,
What is get set in c#?
Define c# i/o classes? List the commonly used classes?
Can you declare a class or a struct as constant?
What is a sealed class?
What's the difference between system.string and system.text.stringbuilder classes?
What?s the difference between the System.Array.CopyTo() and System.Array.Clone()?
What are the different types of comments in c#?
Can we write one page in c# and other in vb in one application ?
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)