<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Casting]]></title><description><![CDATA[<p>Hi Forum !<br />
Ich habe mir eine LinkedList programmiert die als Sammlung von Medien dienen soll. Medium ist bei mir eine Superklasse, die dann jeweils an eine Klasse DVD usw. weiter vererbt wird. So ich kann diese Medien auch wunderbar in meine Liste einfügen (eben als Medium). ABer gibt es die Möglichkeit, wenn ich hinterher ein Object aus dieser List wieder heraus holen möchte, diese von einem Medium wieder in eine DVD zu verwandeln ?</p>
<p>Gruß Paulus</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/169878/casting</link><generator>RSS for Node</generator><lastBuildDate>Wed, 16 Sep 2026 21:21:43 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/169878.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 09 Jan 2007 20:00:29 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Casting on Tue, 09 Jan 2007 20:00:29 GMT]]></title><description><![CDATA[<p>Hi Forum !<br />
Ich habe mir eine LinkedList programmiert die als Sammlung von Medien dienen soll. Medium ist bei mir eine Superklasse, die dann jeweils an eine Klasse DVD usw. weiter vererbt wird. So ich kann diese Medien auch wunderbar in meine Liste einfügen (eben als Medium). ABer gibt es die Möglichkeit, wenn ich hinterher ein Object aus dieser List wieder heraus holen möchte, diese von einem Medium wieder in eine DVD zu verwandeln ?</p>
<p>Gruß Paulus</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1206563</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1206563</guid><dc:creator><![CDATA[Paulus]]></dc:creator><pubDate>Tue, 09 Jan 2007 20:00:29 GMT</pubDate></item><item><title><![CDATA[Reply to Casting on Tue, 09 Jan 2007 20:07:47 GMT]]></title><description><![CDATA[<p>Hallo</p>
<p>ja, mit <a href="http://tutorial.schornboeck.net/dynamic_cast.htm" rel="nofollow">dynamic_cast</a>.<br />
Allerdings solltest du deine Klassen durch <a href="http://tutorial.schornboeck.net/pure_virtual.htm" rel="nofollow">Polymorphie</a> so gestalten, das bereits das Interface der Basisklasse reicht um alle notwenigen Aktionen von außen zu steuern.</p>
<p>bis bald<br />
akari</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1206573</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1206573</guid><dc:creator><![CDATA[akari]]></dc:creator><pubDate>Tue, 09 Jan 2007 20:07:47 GMT</pubDate></item><item><title><![CDATA[Reply to Casting on Tue, 09 Jan 2007 20:14:06 GMT]]></title><description><![CDATA[<p>Danke für die schnelle Hilfe <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f642.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--slightly_smiling_face"
      title=":)"
      alt="🙂"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1206577</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1206577</guid><dc:creator><![CDATA[Paulus]]></dc:creator><pubDate>Tue, 09 Jan 2007 20:14:06 GMT</pubDate></item></channel></rss>