@videlais/

Mastering C++: Part 3: Abstract Classes

C++

No description

fork
loading
Files
  • main.cpp
  • person.h
  • programmer.h

This Plugin Crashed!

Error: Error: must not create an existing file {"type":"CREATE_FILE","wid":"0.7141614712658311","path":"main.cpp","file":{"path":"main.cpp","content":{"asEncoding":{"base64":"I2luY2x1ZGUgPGlvc3RyZWFtPgojaW5jbHVkZSAicGVyc29uLmgiCiNpbmNsdWRlICJwcm9ncmFtbWVyLmgiCgp1c2luZyBuYW1lc3BhY2Ugc3RkOwoKaW50IG1haW4oKSB7CiAgCiAgUHJvZ3JhbW1lciBEYW4oIkRhbiIpOwogIERhbi5wcmludCgpOwogIAp9Cg=="},"asBuffer":null},"loaded":true}}
1
2
3
4
5
6
7
8
9
10
11
12
13
#include <iostream>
#include "person.h"
#include "programmer.h"

using namespace std;

int main() {
  
  Programmer Dan("Dan");
  Dan.print();
  
}