C with classes
This commit is contained in:
16
ObjectOrientedProgramming/virtualclasstest/main.cpp
Normal file
16
ObjectOrientedProgramming/virtualclasstest/main.cpp
Normal file
@@ -0,0 +1,16 @@
|
||||
#include <iostream>
|
||||
#include "a.h"
|
||||
#include "b.h"
|
||||
#include "c.h"
|
||||
|
||||
int main(){
|
||||
v a();
|
||||
A a1(1,2), a2(2,3);
|
||||
B b1(3), b2(5);
|
||||
a1.p();
|
||||
a2.p();
|
||||
b1.p();
|
||||
b2.p();
|
||||
system("pause");
|
||||
return 0;
|
||||
}
|
||||
Reference in New Issue
Block a user