-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSong.h
More file actions
40 lines (30 loc) · 678 Bytes
/
Song.h
File metadata and controls
40 lines (30 loc) · 678 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
//
// Created by willworthington on 10/23/2018.
//
#include <cstdlib>
#include <iostream>
#ifndef UTPOD_SONG_H
#define UTPOD_SONG_H
using namespace std;
class Song {
private:
string title;
string artist;
int size;
public:
Song();
Song(string title);
Song(string title, string artist, int size);
string getTitle() const;
void setTitle(string t);
string getArtist() const;
void setArtist(string a);
int getSize() const;
void setSize(int s);
void swap(Song &s);
bool operator < (Song const &rhs);
bool operator > (Song const &rhs);
bool operator ==(Song const &rhs);
//~Song();
};
#endif //UTPOD_SONG_H