<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.d3xt3r01.tk//index.php?action=history&amp;feed=atom&amp;title=C%2B%2B_OOP_Hello_World</id>
	<title>C++ OOP Hello World - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.d3xt3r01.tk//index.php?action=history&amp;feed=atom&amp;title=C%2B%2B_OOP_Hello_World"/>
	<link rel="alternate" type="text/html" href="https://wiki.d3xt3r01.tk//index.php?title=C%2B%2B_OOP_Hello_World&amp;action=history"/>
	<updated>2026-06-19T22:25:49Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.45.1</generator>
	<entry>
		<id>https://wiki.d3xt3r01.tk//index.php?title=C%2B%2B_OOP_Hello_World&amp;diff=71&amp;oldid=prev</id>
		<title>Admin: New page: ==INFO== This is my first attempt to write a C++ class. It has a constructor ( to initialize default values to variabiles ), a setter function ( to set values in private variables ) and a ...</title>
		<link rel="alternate" type="text/html" href="https://wiki.d3xt3r01.tk//index.php?title=C%2B%2B_OOP_Hello_World&amp;diff=71&amp;oldid=prev"/>
		<updated>2009-07-05T00:14:26Z</updated>

		<summary type="html">&lt;p&gt;New page: ==INFO== This is my first attempt to write a C++ class. It has a constructor ( to initialize default values to variabiles ), a setter function ( to set values in private variables ) and a ...&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;==INFO==&lt;br /&gt;
This is my first attempt to write a C++ class. It has a constructor ( to initialize default values to variabiles ), a setter function ( to set values in private variables ) and a getter function ( to get the values ). I think the easiest way to learn is by trying to edit simple codes and see what they do and if they still work.&lt;br /&gt;
&lt;br /&gt;
==CODE==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;cpp&amp;quot;&amp;gt;&lt;br /&gt;
#include &amp;lt;iostream&amp;gt;&lt;br /&gt;
#include &amp;lt;string&amp;gt;&lt;br /&gt;
&lt;br /&gt;
using namespace std;&lt;br /&gt;
&lt;br /&gt;
class thingy{&lt;br /&gt;
        private:&lt;br /&gt;
                string text;&lt;br /&gt;
&lt;br /&gt;
        public:&lt;br /&gt;
                thingy(){&lt;br /&gt;
                        this-&amp;gt;text = &amp;quot;&amp;quot;;&lt;br /&gt;
                }&lt;br /&gt;
                void SetText(string text){&lt;br /&gt;
                        this-&amp;gt;text = text;&lt;br /&gt;
                }&lt;br /&gt;
                string GetText(void){&lt;br /&gt;
                        return(this-&amp;gt;text);&lt;br /&gt;
                }&lt;br /&gt;
};&lt;br /&gt;
&lt;br /&gt;
int main (void){&lt;br /&gt;
        thingy moo;&lt;br /&gt;
        cout &amp;lt;&amp;lt; &amp;quot;Initial text value is: &amp;quot; &amp;lt;&amp;lt; moo.GetText() &amp;lt;&amp;lt; endl;&lt;br /&gt;
        moo.SetText(&amp;quot;Hello World&amp;quot;);&lt;br /&gt;
        cout &amp;lt;&amp;lt; &amp;quot;Text value now is: &amp;quot; &amp;lt;&amp;lt; moo.GetText() &amp;lt;&amp;lt; endl;&lt;br /&gt;
        return 0;&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
should output&lt;br /&gt;
&lt;br /&gt;
  Initial text value is:&lt;br /&gt;
  Text value now is: Hello World&lt;br /&gt;
&lt;br /&gt;
[[Category: Programming]]&lt;br /&gt;
[[Category: C++]]&lt;/div&gt;</summary>
		<author><name>Admin</name></author>
	</entry>
</feed>