ITP 120 Create a driver class: A class called HeyThere

User Generated

gehpi

Programming

itp 120

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

User generated content is uploaded by users for the purposes of learning and should be used following Studypool's honor code & terms of service.

Explanation & Answer

At...


Anonymous
I was stuck on this subject and a friend recommended Studypool. I'm so glad I checked it out!

Studypool
4.7
Trustpilot
4.5
Sitejabber
4.4

Related Tags