C with classes

This commit is contained in:
e2hang
2025-12-31 00:39:23 +08:00
commit a047893756
198 changed files with 11173 additions and 0 deletions

View File

@@ -0,0 +1,19 @@
#ifndef B_H
#define B_H
#include <iostream>
#include "a.h"
class B : virtual public A{
private:
A* base;
int js;
public:
B() = delete;
B(int n = 1) : A(12,6), base(this), js(n){}
void p() override ;
friend std::ostream& operator<<(std::ostream& os , B& x);
~B(){}
};
#endif