Toggle navigation
Home
Latest pastes
FAQ
Random
BitBin is shutting down!
Register
Login
01
SUBMITTED BY:
mrslimous
DATE:
May 24, 2017, 3:25 a.m.
FORMAT:
Text only
SIZE:
400 Bytes
Raw
Download
Tweet
HITS:
257
Go to comments
Report
#include <iostream>
#include <string>
using namespace std;
class B
{
public:
void methode()
{
cout << "hier ist B" << endl;
}
};
class A
{
public:
void methode(B* klasse2)
{
klasse2->methode();
}
};
int main()
{
A * klasse1 = new A();
B * klasse2 = new B();
klasse1->methode(klasse2);
return 0;
}
Please enable JavaScript to view the
comments powered by Disqus.
comments powered by
Disqus