naikibro / BatailleNavale

A collaborative Java project to implement the "BatailleNavale" game
1 stars 0 forks source link

Implement Encapsulation and inheritance nicely #32

Open naikibro opened 4 months ago

naikibro commented 4 months ago

Ship

We can make every child class of Ship implement an interface to ensure they all have common behaviors

Interface - ShipInterface

I think the ships could have in common:

The goal would be to have a scholar example of Implement and extends inside our code base so we can reference it in the README.md

Output