What is use of Non abstract methods in abstract classes and also how to consume it the same in c#.NET?
No links please...........
How to call non abstract method of abstract class?
1 Answer
Know the answer? Post it. Somebody with the same question will find it here.


Parveen SiwachRank #6,758 · 257 reputationPosted May 27, 2013, 10:03 PM EDT
Example:
The System.IO.Stream class is abstract. It implements IDisposable.
Stream.Dispose is a non-abstract method that calls the virtual Close method (not abstract, but it could be in a similar type).
This allows derived types to support IDispose without having to write any code for it, it's already implemented by the base class.
The work of Disposing is done by the Close method.