When is it appropriate to use abstracts as opposed to interfaces to define base class behavior? What is the most common, practical usage for each? For instance, if I were to write a database applications that required to read a wide variety of database formats, would I define by database classes as abstracts or interfaces?
zahnsoftware 0 Newbie Poster
Recommended Answers
Jump to PostWhat is an Abstract Class?
An abstract class is a special kind of class that cannot be instantiated. So the question is why we need a class that cannot be instantiated? An abstract class is only to be sub-classed (inherited from). In other words, it only allows other classes …
All 3 Replies
PierlucSS 52 Junior Poster
ddanbe commented: Good explanation! +7
ddanbe 2,724 Professional Procrastinator Featured Poster

embooglement
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.