I am creating a program to store different types of lawnmowers in an ArrayList. There are 4 types of mowers that all inherit from Mower. I am new to oop. Why do I get this error when I try to add a mower to my ArrayList?
Method to read mower data from a file path
Method to add Mower to arrayList
I tried different syntax for initializing LawnTractor but i kept getting the same result.