What is the difference between virtual and abstract properties?
Both are same.
Both virtual and abstract properties should be having the implementation in a class in which they are declared.
Virtual property have implementation and Abstract property do not have implementation within declared class.
We can override abstract properties and is not possible for virtual properties.
Virtual property is a property whose behaviour can be changed in the inherited or derived class and abstract property is a property which is having declaration in base class and implementation in derived class.
Back To Top