- 1

Getters and setters

If we have class vehicle which has following attributes names, weight, seats, model, color, engine, fuel_variant Now do I need to set the setter and getter method for each attribute Won't it make the code long and difficult to read and understand

5th Oct 2021, 10:04 AM
Ravi
1 Answer