Can I call a virtual method from a constructor/destructor?
Answer / Priya Gautam
"No, you cannot directly call a virtual method from a constructor or destructor in C#. This is because constructors and destructors are called before or after an object's lifetime, respectively, and virtual methods rely on the runtime type of an object."
| Is This Answer Correct ? | 0 Yes | 0 No |
Is c# good for games?
What is difference between string and string builder?
Explain About stateless and state full web service
what are value types and reference types? where they are stored?
What is escape character in c#?
Where is the output of TextWriterTraceListener redirected?
What is extension method in c# and how to use them?
What does clr stand for?
What is the use of tuple in c#?
How to declares a two-dimensional array in C#?
what is IDisposal interface,IComparable,IEquatable,IFormatable
What is the difference between a variable and a literal?
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)