Abstract Classes

JV28132

New member
Joined
Nov 3, 2010
Messages
3
Programming Experience
Beginner
I have been reading up on Abstract classes and am thinking about utilizing them in an upcoming project.

I would like to know the pros and cons of using abstract classes from someone who has actually used them.

Additionally, I would like to know if the abstract class needs to be in it's own project or if they should be defined in an existing project and used within the application.

Any sharing of this information would be greatly appreciated... :):)
 
To answer your first question I'll point you to this article: Should I use an abstract class or an interface? at C# Online.NET (CSharp-Online.NET). It shows the pros and cons of abstract classes and interfaces so you can decide which functionality is right for you.

An abstract class doesn't need to be in its own project. If you see yourself using the abstract class as a base class in multiple projects go ahead and make it its own project. If it's a specialized instance you'll only be using once go ahead and define it in the existing project.
 
Back
Top