<?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[Noch mal eine klassenhierachie FRage:]]></title><description><![CDATA[<p>Folgende Konstellation:</p>
<pre><code class="language-cpp">class A{

protected:
 int iA;
};

class B: public A{

protected: 
int iB;

}

class C: public B{

private:
int iC;
}
</code></pre>
<p>So nun kann ich in klasse A die Variable iA benutzen, in klasse B die Variebe iA udn IB, und in Klasse C iA,iB,IC! was kann ich aber tun das in klasse C iA nicht benutzbar ist??</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/177784/noch-mal-eine-klassenhierachie-frage</link><generator>RSS for Node</generator><lastBuildDate>Thu, 25 Jun 2026 14:23:13 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/177784.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 04 Apr 2007 07:37:12 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Noch mal eine klassenhierachie FRage: on Wed, 04 Apr 2007 07:37:12 GMT]]></title><description><![CDATA[<p>Folgende Konstellation:</p>
<pre><code class="language-cpp">class A{

protected:
 int iA;
};

class B: public A{

protected: 
int iB;

}

class C: public B{

private:
int iC;
}
</code></pre>
<p>So nun kann ich in klasse A die Variable iA benutzen, in klasse B die Variebe iA udn IB, und in Klasse C iA,iB,IC! was kann ich aber tun das in klasse C iA nicht benutzbar ist??</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1258970</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1258970</guid><dc:creator><![CDATA[BorisDieKlinge]]></dc:creator><pubDate>Wed, 04 Apr 2007 07:37:12 GMT</pubDate></item><item><title><![CDATA[Reply to Noch mal eine klassenhierachie FRage: on Wed, 04 Apr 2007 07:52:12 GMT]]></title><description><![CDATA[<p>Du könntest B private von A ableiten lassen - dadurch gelten alle Elemente von A als private Elemente von B und werden nicht mehr an dessen Nachfahren weitergegeben.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1258982</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1258982</guid><dc:creator><![CDATA[CStoll]]></dc:creator><pubDate>Wed, 04 Apr 2007 07:52:12 GMT</pubDate></item></channel></rss>