Commit 9022e83c authored by Felix Huther's avatar Felix Huther
Browse files

Uebung1

parent 916d2b35
......@@ -18,7 +18,7 @@ void ConsoleUI::ausgabe() const
Fussballer* pFussballer = static_cast<Fussballer*>(sportler);
std::cout << pFussballer->getPosition() << std::endl;
}
else
else if(typeid(*sportler) == typeid(Schwimmer))
{
Schwimmer* pSchwimmer = static_cast<Schwimmer*>(sportler);
std::cout << pSchwimmer->getStil() << std::endl;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment