judiMc / oopExamples

repository to contain the solutions for the practice problems for the scioer e-text on oo programming in java.
GNU Affero General Public License v3.0
1 stars 0 forks source link

java/DemoMain #2

Closed judiMc closed 2 years ago

judiMc commented 2 years ago

Create a class called Demo that contains three public methods: messageOne(), messageTwo(), and messageThree(). Each method should print a single line of text. Create a second class called Runner that has a main method. In that main method create an instance of your Demo class and use all of the methods.