PPL Assignment
IRM2015006
test.cpp
Go to the documentation of this file.
1 #include <iostream>
2 #include "allgirls.h"
3 #include "../boys/allboys.h"
4 using namespace std;
5 
6 int main()
7 {
8  std::string name = "menka";
9  ChoosyGirl g(name, 1, 2, 100, rich);
10  GenerousBoy b("himanshu", 19, 29, 232, 1);
11  cout << g.name << endl;
12  cout << g.getNature() << endl;
13  cout << g.getHappiness() << endl;
14  cout << b.name << endl;
15  cout << b.getNature() << endl;
16  cout << b.getHappiness() << endl;
17  b.makeCouple(&g);
18  cout << b.girlfriend->name << endl;
19  return 0;
20 }
void makeCouple(Girl *girl)
Definition: boy.cpp:18
float getHappiness() override
Definition: choosygirl.cpp:18
Definition: girl_type.h:14
GirlNature getNature() override
Definition: choosygirl.cpp:36
BoyNature getNature() override
Definition: generousboy.cpp:26
std::string name
Definition: girl.h:24
int main()
Definition: test.cpp:6
std::string name
Definition: boy.h:24
float getHappiness() override
Definition: generousboy.cpp:15
Girl * girlfriend
Definition: boy.h:30