Posts by czdepski • 1 point
1 post
-
0
votes1
answer268
viewsA: Arraylist of Objects + Inheritance
There are two ways to do that. The Cars class has the method acelerar() astrato possessing implementation in each car model: public abstract class Carro { public abstract void acelerar(); } Or you…