create a quot driver quot class contains the method quot main quot which instantiates a class called heythere

create a quot driver quot class contains the method quot main quot which instantiates a class called heythere.

Create a “driver” class (contains the method “main()”) which instantiates a class called HeyThere. The HeyThere class should contain a constructor which accepts a string argument and a separate method called SayHey that also accepts a single string argument. In the driver class, ask the user for his/her name, then instantiate an instance of the the HeyThere class. Use both the constructor and the SayHey method to print out a greeting and the name the user typed in. Submit your source code only

 

create a quot driver quot class contains the method quot main quot which instantiates a class called heythere

Posted in Uncategorized

Leave a Reply