Should I use a constructor to set the default values for class variables that objects will inherit, or does simple assignment have the same effect?
public class Vehicle { private String color; Vehicle() { color = "Red"; } } public class Vehicle { private String color = "Red"; }