summaryrefslogtreecommitdiff
path: root/College.hh
blob: 756bffe2e9d85dd075dd8aab0e99b639ece9d324 (plain) (blame)
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
#pragma once

#include "University.hh"

class College {
private:
  std::string college_name;
  std::string college_location;
  int college_rank;
  double reqd_gpa_for_admit;
  University university_pin;

public:
  College() {}
  College(std::string name, int rank, double gpa)
      : college_name(name), college_rank(rank), reqd_gpa_for_admit(gpa) {}
  College(std::string name, std::string location, int rank, double gpa,
          University pin)
      : college_name(name), college_location(location), college_rank(rank),
        reqd_gpa_for_admit(gpa), university_pin(pin) {}

  void set_college_name(std::string);
  std::string get_college_name();
  void set_college_location(std::string);
  std::string get_college_location();

  //......other setters and getters
  bool operator==(const University &);
  void print_pin();
};