Sphere: Related Content
#include <string>
#include <iostream>
using namespace std;
class B {
public:
B(const string& ss) { cout << "B constructor\n"; f(ss); }
virtual void f(const string&) { cout << "B::f\n";}
};
class D : public B {
public:
D(const string & ss) :B(ss) { cout << "D constructor\n";}
void f(const string& ss) { cout << "D::f\n"; s = ss; }
private:
string s;
};
int main()
{
D d("Hello");
cout << "----------------" << endl;
d.f("hi");
}
She co-founded a programme for underprivileged boys to learn music: 'I want
them to know they can dream’
-
Driven to give back to the community for the support she received when she
needed financial help to study at the prestigious Royal College of Music in
Lond...
3 hours ago
No comments:
Post a Comment