Skip to content

Instantly share code, notes, and snippets.

@luchiago
Created July 9, 2020 23:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save luchiago/5f2a48b5a89e660a3127da0367fae90f to your computer and use it in GitHub Desktop.
Save luchiago/5f2a48b5a89e660a3127da0367fae90f to your computer and use it in GitHub Desktop.
Abstract Methods vs Concret Methods

Differences between abstract methods and concrete methods

What's abstract methods

One abstract method is a method that is declared, but contains no implementation. Abstract classes cannot be instantiated, and require subclasses to provide implementations for the abstract methods. It's kinda like Interfaces in Java. Even if the methods don't implements anything, the child classes should implemente those methods.

What's concret methods

Different thant an abstract method, a concret method does implement something even the class is an Abstract Class

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment