Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class Operator {
- public String name;
- public String certified;
- public Operator(String name, String certified) {
- this.name = name;
- this.certified = certified;
- }
- public String toString() {
- return "The name of the operator is: " + name + "\nDoes he have a certification? " + certified;
- }
- public void operateDrone() {
- System.out.println("The operator navigates the drone.");
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement