-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsong.h
66 lines (52 loc) · 969 Bytes
/
song.h
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
//
// Song.h
//
//
// Created by David Fernandez and Adrian Melo on 10/28/18.
//
#ifndef Song_h
#define Song_h
#include <string>
using namespace std;
class Song
{
private:
string artist;
string title;
int size;
public:
Song();
Song(string _artist, string _title, int _size);
string getArtist() const{
return artist;
}
void setArtist(string n) {
if(n== "") {
return;
}else{
artist = n;
}
}
string getTitle() const{
return title;
}
void setTitle(string m){
if(m== "") {
return;
}else{
title = m;
}
}
int getSize() const;
void setSize(int p){
if (p<=0){
return;
}else {
size = p;
}
}
bool operator >(Song const &rhs);
bool operator <(Song const &rhs);
bool operator ==(Song const &rhs);
};
#endif /* Song_h */