<?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[Vererbung]]></title><description><![CDATA[<p>class x: protected y {};</p>
<p>welchen nutzen hat das protected ?</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/259906/vererbung</link><generator>RSS for Node</generator><lastBuildDate>Tue, 08 Sep 2026 16:22:48 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/259906.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 29 Jan 2010 01:32:10 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Vererbung on Fri, 29 Jan 2010 01:32:10 GMT]]></title><description><![CDATA[<p>class x: protected y {};</p>
<p>welchen nutzen hat das protected ?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1846819</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1846819</guid><dc:creator><![CDATA[blurry333]]></dc:creator><pubDate>Fri, 29 Jan 2010 01:32:10 GMT</pubDate></item><item><title><![CDATA[Reply to Vererbung on Fri, 29 Jan 2010 01:33:47 GMT]]></title><description><![CDATA[<p>dass nur von x abgeleitete klassen auf den &quot;y teil&quot; von x zugreifen können</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1846820</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1846820</guid><dc:creator><![CDATA[hustbaer]]></dc:creator><pubDate>Fri, 29 Jan 2010 01:33:47 GMT</pubDate></item><item><title><![CDATA[Reply to Vererbung on Fri, 29 Jan 2010 10:30:52 GMT]]></title><description><![CDATA[<p>class z:public x{};</p>
<p>bei dieser Mehrfachvererbung kann z nicht mehr auf den y Teil zugreifen ?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1846922</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1846922</guid><dc:creator><![CDATA[blurry331]]></dc:creator><pubDate>Fri, 29 Jan 2010 10:30:52 GMT</pubDate></item><item><title><![CDATA[Reply to Vererbung on Fri, 29 Jan 2010 10:40:10 GMT]]></title><description><![CDATA[<p>blurry331 schrieb:</p>
<blockquote>
<p>class z:public x{};</p>
<p>bei dieser Mehrfachvererbung kann z nicht mehr auf den y Teil zugreifen ?</p>
</blockquote>
<p>Das wäre so bei private-Vererbung. Es geht aber um protected-Vererbung, und da ist es eben gewollt, dass das einstige public- und protected-Interface nur für abgeleitete Sachen sichtbar ist, diese Klasse (z) aber nicht überall auch als y ansprechbar ist.</p>
<p>Außerdem ist das keine Mehrfachvererbung, sondern eine ganz normale tiefere Klassenhierarchie.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1846923</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1846923</guid><dc:creator><![CDATA[l&#x27;abra d&#x27;or]]></dc:creator><pubDate>Fri, 29 Jan 2010 10:40:10 GMT</pubDate></item></channel></rss>