sehqlr / menne-lecture-java

Mike Menne's Java Class
0 stars 0 forks source link

Interface methods should not be abstract #6

Open mpmenne opened 10 years ago

mpmenne commented 10 years ago

Hey so interface methods are typically just the method signature that the Class must have to be considered that type.

Abstract methods are very similar to interface methods; both require another class to implement that method signature, but Abstract is used only with Abstract classes. Abstract classes allow several method definitions to be undefined so that subclasses can define how they should operate.

When you get to the next PSET you'll use a common interface for the class to print to the console and the class to print to the file

sehqlr commented 10 years ago

I'll make sure to study up on the difference, thanks!