Skip to content

Instantly share code, notes, and snippets.

View theandrew168's full-sized avatar

Andrew Dailey theandrew168

View GitHub Profile
#include <iostream>
class Adder {
public:
int add(int a, int b) const { return a + b; }
};
int main() {
// Dynamic allocation using "new"
Adder *adder = new Adder();