What are virtual methods? How are they used?

Answer Posted / betty

virtual methods is applied in polymorphism. When you declare
a method as virtual, you can override the method in another
class.

Is This Answer Correct ?    6 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is cookies in c# asp net?

598


Explain about Destructor method?

631


What all details the assembly manifest will contain?

527


What is an xsd file?

586


What is the syntax for calling an overloaded constructor within a constructor (this() and constructorname() does not compile)?

603






What is static and use of it?

574


Contrast between an interface and abstract class?

630


Can a method return multiple values in c#?

518


What is attribute c#?

512


What is a destructor in c#?

603


Why do you call it a process? What’s different between process and application in .net, not common computer usage, terminology?

635


What is constructor overloading in c#?

573


What is system predicate?

548


Explain the difference between directcast and ctype.

561


Describe the types of comments in c#?

594