Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class MusicStore {
- String owner = "No owner";
- public void displayHoursOfOperation() {
- System.out.println("Store Hours: Daily: 9:00 AM - 21:00 PM");
- }
- String setOwner(String name) {
- owner = name;
- return name;
- }
- }
- public class TestMusicStore {
- public static void main(String[] args) {
- MusicStore ob = new MusicStore();
- ob.displayHoursOfOperation();
- System.out.println(ob.setOwner("Roberto Baggio, Proprietor"));
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement