27 lines
427 B
C++
27 lines
427 B
C++
namespace clanguml {
|
|
namespace t20032 {
|
|
|
|
struct A {
|
|
int a1(int i) { return i; }
|
|
double a2(double d) { return d; }
|
|
const char *a3(const char *s) { return s; }
|
|
};
|
|
|
|
struct B {
|
|
int b(int i) { return a.a1(i); }
|
|
double b(double d) { return a.a2(d); }
|
|
const char *b(const char *s) { return a.a3(s); }
|
|
|
|
A a;
|
|
};
|
|
|
|
void tmain(int argc, char **argv)
|
|
{
|
|
B b;
|
|
|
|
b.b(1);
|
|
b.b(2.0);
|
|
b.b("three");
|
|
}
|
|
}
|
|
} |