Write a Person class with a name. The constructor takes it. setName replaces it, and getName returns it. Also write greet, which returns "Hello, " followed by the name.
class Person { Person(String name); void setName(String name); String getName(); String greet(); }
Examples
There are also 3 hidden tests you can't see. Solve the problem, not the examples.