Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package pl.pszemke.innerClass;
- public class Song {
- private String title;
- private double duration;
- public Song(String title, double duration) {
- this.title = title;
- this.duration = duration;
- }
- public String getTitle() {
- return title;
- }
- @Override
- public String toString() {
- return this.title + " : " + this.duration;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement