Description
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
Explanation & Answer
Review
Review
24/7 Homework Help
Stuck on a homework question? Our verified tutors can answer all questions, from basic math to advanced rocket science!
Similar Content
Related Tags
Moby Dick
by Herman Melville
The Adventures of Huckleberry Finn
by Mark Twain
Where the Crawdads Sing
by Delia Owens
To Kill a Mockingbird
by Harper Lee
Extreme Ownership - How US Navy SEALs Lead and Win
by Jocko Willink and Leif Babin
Invisible Man
by Ralph Ellison
Freakonomics
by Stephen J. Dubner and Steven D. Levitt
Underground A Human History of the Worlds Beneath our Feet
by Will Hunt
The Lost Man
by Jane Harper