Skip to content

Instantly share code, notes, and snippets.

View codesue's full-sized avatar
🦥
Slow to respond

Suzen Fylke codesue

🦥
Slow to respond
View GitHub Profile
@codesue
codesue / main_1_ResidenceNonabstract.cpp
Last active October 2, 2017 02:34 — forked from simonayzman/main_1_ResidenceNonabstract.cpp
Applying Polymorphism to Data in Data Structures
#include <iostream>
#include <vector>
using namespace std;
class Residence {
public:
Residence(double newPrice = 1.0) : price(newPrice) {}
virtual ~Residence() {}
double getPrice() { return price; }