cs304 Assignment No 2 Solution Fall 2019 [www.virtualstudysolutions.blogspot.com]
cs304 Assignment No 2 Solution Fall 2019 [www.virtualstudysolutions.blogspot.com]
#include<iostream>
#include<string>
Using namespace std;
Class franchise{
private:
string name;
string city;
public:
franchise();
void setname(string);
void setcity(string);
string getname();
string getcity();
};
franchise::franchise(){
}
void franchise::setname(string n){
name = n;
}
string franchise::getcity(){
return city;
}
Class league{
private:
string naame;
string country;
int year;
franchise french;
public:
www.virtualstudysolutions.blogspot.com
league(string , int, string , string , string);
void displayinfo();
};
Void league::displayinfo(){
cout<<"league name :"<<naame<<endl;
cout<<"league year :"<<year<<endl;
cout<<"league county :"<<country<<endl;
cout<<"franchise name :"<<french.getname()<<endl;
cout<<"frenchise city :"<<french.getcity()<<endl;
}
www.virtualstudysolutions.blogspot.com