Does my parent class need constructors and getters & setters?
For testing, I have created a class named Vehicle that I made abstract since I don’t want to allow anyone to create instances of this class. Its only purpose is to exist so I can use my other classes, Car and Bicycle, to inherit from it.
Does my parent class need constructors and getters & setters?
For testing, I have created a class named Vehicle that I made abstract since I don’t want to allow anyone to create instances of this class. Its only purpose is to exist so I can use my other classes, Car and Bicycle, to inherit from it.