<?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[Konstruktor]]></title><description><![CDATA[<p>hallo an Alle,<br />
ganz primitive frage:</p>
<pre><code class="language-cpp">class UserInterface
{
public:
  UserInterface(); //this is the default constructor
}
int main()
{
  UserInterface ui; //default constructor will be called here
  UserInterface ui(); // which constructor will be called here??? wie kann man hier eine Konstruktor selber schreiben. wie würde sie ausschauen?
}
</code></pre>
<p>Lg buddy</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/265970/konstruktor</link><generator>RSS for Node</generator><lastBuildDate>Thu, 03 Sep 2026 16:41:33 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/265970.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 01 May 2010 22:59:05 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Konstruktor on Sat, 01 May 2010 22:59:05 GMT]]></title><description><![CDATA[<p>hallo an Alle,<br />
ganz primitive frage:</p>
<pre><code class="language-cpp">class UserInterface
{
public:
  UserInterface(); //this is the default constructor
}
int main()
{
  UserInterface ui; //default constructor will be called here
  UserInterface ui(); // which constructor will be called here??? wie kann man hier eine Konstruktor selber schreiben. wie würde sie ausschauen?
}
</code></pre>
<p>Lg buddy</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1891153</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1891153</guid><dc:creator><![CDATA[badhan]]></dc:creator><pubDate>Sat, 01 May 2010 22:59:05 GMT</pubDate></item><item><title><![CDATA[Reply to Konstruktor on Sun, 02 May 2010 06:31:22 GMT]]></title><description><![CDATA[<p>Deine zweite Zeile in main() ist eine lokale Funktionsdeklarations.<br />
Und mit</p>
<blockquote>
<p>wie kann man hier eine Konstruktor selber schreiben.</p>
</blockquote>
<p>kann ich wenig abfabgen <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f615.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--confused_face"
      title=":/"
      alt="😕"
    /><br />
Konstruktoren werden immer in der Klassendefinition deklariert. Du kannst keinen Konstruktor irgendwo anders &quot;schreiben&quot;.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1891179</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1891179</guid><dc:creator><![CDATA[l&#x27;abra d&#x27;or]]></dc:creator><pubDate>Sun, 02 May 2010 06:31:22 GMT</pubDate></item><item><title><![CDATA[Reply to Konstruktor on Sun, 02 May 2010 09:57:03 GMT]]></title><description><![CDATA[<p>Alles klar.<br />
Ich dachte , die zweite Zeile von Main wäre auch eine Instanziierung von eine Objekt aus der klasse Userinterface.<br />
War mein denkfehler.</p>
<p>Danke.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1891239</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1891239</guid><dc:creator><![CDATA[badhan]]></dc:creator><pubDate>Sun, 02 May 2010 09:57:03 GMT</pubDate></item></channel></rss>