Create a public class named
Restaurant should define a single public constructor that accepts three fields: a
String (the name),
String (the type of cuisine) and an
int (the capacity).
You are welcome to name these fields however you like!
Your constructor should reject
null names and cuisines and negative or zero capacities.
You do not need to provide any getters and setters!
Instead, define a single method named
equals method accepts an
Object as a single parameter.
It should return
true if the passed object is a
Restaurant and has the same values for the name and cuisine,