Can an abstract method be overridden by a virtual method

Showing Answers 1 - 10 of 10 Answers

rahul

  • Aug 26th, 2006
 

Hello sir,

My Name is rahul.The ans For Your question is,It Cannot be overridden by virtul method. If I am Wrong Please Forgive me

byeeeee

Rahul

  Was this answer useful?  Yes

Ramya

  • Aug 31st, 2006
 

Yes,

  An abstract  method can  overrides a virtual method

anishcp

  • Sep 12th, 2006
 

An abstract method is a method without any method body. When a class inherits from an abstract class, the derived class must implement all the abstract methods declared in the base class. But by declaring the derived class also abstract, we can avoid the implementation of all or certain abstract methods. This is what is known as partial implementation of an abstract class.

A virtual method specifies an implementation of a method than can be polymorphically override in the derived class. When we declare a virtual method, it must contain a method body. It is not necessary to override a base class virtual method inside a derived class.

The abstract methods are implicitly virtual and hence they cant make explicitly virtual in c#

Raj

  • Dec 8th, 2006
 

No, it cannot be implemented.

This is due to the fact that a method cannot have both virtual and override qualifier.

  Was this answer useful?  Yes

xinper

  • Dec 12th, 2007
 

No, I tried.


A member 'ClassB.methodA()' marked as override cannot be marked as new or virtual.   

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions