Created
January 12, 2021 07:23
-
-
Save mhassanist/d16187e27ab456f44c139cc0175962a4 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Give this class | |
/*The header file for main.cpp*/ | |
#include<iostream> | |
using namespace std; | |
class Dog | |
{ | |
string name; | |
int licenseNumber; | |
public: | |
void setName(string nameIn); | |
void setLicenseNumber(int licenseNumberIn); | |
string getName(); | |
int getLicenseNumber(); | |
void printInfo(); | |
}; | |
void Dog::setName(string nameIn) | |
{ | |
//ToDo: finish this function | |
} | |
void Dog::setLicenseNumber(int licenseNumberIn) | |
{ | |
//ToDo: finish this function | |
} | |
string getName() | |
{ | |
//ToDo: finish this function | |
} | |
int getLicenseNumber() | |
{ | |
//ToDo: finish this function | |
} | |
void printInfo() | |
{ | |
//ToDo: finish this function | |
} | |
/*Goal: practice creating and using a class | |
** Use the class 'Dog' to create to | |
** instances of the class, dog1 and dog2. | |
** Assign dog1 the name: Trixie | |
** Assign dog2 the name: Kali | |
** Assign dog1 the license #1234 | |
** Assign dog2 the license #5678 | |
** Print the information for each dog. | |
*/ | |
int main() | |
{ | |
return 0; | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment