Advertisement
Vladkoheca

Operator.java

Nov 29th, 2024
11
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.45 KB | Source Code | 0 0
  1. public class Operator {
  2.     public String name;
  3.     public String certified;
  4.  
  5.     public Operator(String name, String certified) {
  6.         this.name = name;
  7.         this.certified = certified;
  8.     }
  9.  
  10.     public String toString() {
  11.         return "The name of the operator is: " + name + "\nDoes he have a certification? " + certified;
  12.     }
  13.     public void operateDrone() {
  14.         System.out.println("The operator navigates the drone.");
  15.     }
  16. }
  17.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement