Real World Examples of When to Use an Abstract Class


Under most circumstances, you would use an abstract class whenever you want to provide a common implemented functionality among all the implementations of the derived class.

So if you create a class like "Airplane" and fill it with methods that are needed for airplanes, you can create derived classes that use the methods from the abstract class.

This makes maintaining and extending your code much easier since classes that are derived from the abstract class, get everything in the abstract class for free.

The source code for this video can be found at my GitHub below: https://github.com/mcbethr/WhenToUseAnAbstractClass



Featured Posts
Posts are coming soon
Stay tuned...
Recent Posts
Archive
Search By Tags
No tags yet.
Follow Us
  • Facebook Basic Square
  • Twitter Basic Square
  • Google+ Basic Square