SJSURoboticsTeam / urc-central-2021

Track progress and information for the URC 2021 competition
MIT License
1 stars 0 forks source link

Add explicit to single argument constructors #231

Closed naterpotatoers closed 2 years ago

naterpotatoers commented 2 years ago

As a best practice, all one-parameter constructors should be stated with the explicit keyword to vaoid behind the scenes type conversions e.g.

Object obj;
obj = 37;

This code snippet would construct an Object call obj by using the = statement which is probably not what we would want with our classes

naterpotatoers commented 2 years ago

Drive rover system needs explicit keyword added