Advertisement
Guest User

Untitled

a guest
Feb 15th, 2019
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.71 KB | None | 0 0
  1. /*
  2. File Name: Student.cpp
  3. Name: Rohan Tohaan
  4. Date: 02/05/2019
  5. Assignment: CSCI-235, Spring 2019, Project 1A
  6. */
  7.  
  8. #include <iostream>
  9. #include "Student.hpp"
  10.  
  11. using namespace std;
  12.  
  13. /** Parameterized constructor
  14. @param first the student's major
  15. @param last the student's gpa
  16. */
  17.  
  18. Student::Student(int id, string first, string last):
  19. CourseMember(id, first, last) {
  20. //major_ = Major;
  21. //gpa_ = GPA;
  22. };
  23.  
  24. // @return returns id_;
  25. string Student::getMajor() const {
  26. return major_;
  27. };
  28.  
  29. // @return returns first_name_
  30. double Student::getGpa() const {
  31. return gpa_;
  32. };
  33.  
  34. //@
  35. void Student::setMajor(const string major) {
  36. major_ = major;
  37. }
  38.  
  39. void Student::setGpa(const double gpa){
  40. gpa_=gpa;
  41. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement