Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- File Name: Student.cpp
- Name: Rohan Tohaan
- Date: 02/05/2019
- Assignment: CSCI-235, Spring 2019, Project 1A
- */
- #include <iostream>
- #include "Student.hpp"
- using namespace std;
- /** Parameterized constructor
- @param first the student's major
- @param last the student's gpa
- */
- Student::Student(int id, string first, string last):
- CourseMember(id, first, last) {
- //major_ = Major;
- //gpa_ = GPA;
- };
- // @return returns id_;
- string Student::getMajor() const {
- return major_;
- };
- // @return returns first_name_
- double Student::getGpa() const {
- return gpa_;
- };
- //@
- void Student::setMajor(const string major) {
- major_ = major;
- }
- void Student::setGpa(const double gpa){
- gpa_=gpa;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement