<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://95.179.246.60/mediawiki/index.php?action=history&amp;feed=atom&amp;title=How_to_use_Class_variables</id>
	<title>How to use Class variables - Revision history</title>
	<link rel="self" type="application/atom+xml" href="http://95.179.246.60/mediawiki/index.php?action=history&amp;feed=atom&amp;title=How_to_use_Class_variables"/>
	<link rel="alternate" type="text/html" href="http://95.179.246.60/mediawiki/index.php?title=How_to_use_Class_variables&amp;action=history"/>
	<updated>2026-05-08T12:41:48Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.39.17</generator>
	<entry>
		<id>http://95.179.246.60/mediawiki/index.php?title=How_to_use_Class_variables&amp;diff=52&amp;oldid=prev</id>
		<title>Nmingott: imported material</title>
		<link rel="alternate" type="text/html" href="http://95.179.246.60/mediawiki/index.php?title=How_to_use_Class_variables&amp;diff=52&amp;oldid=prev"/>
		<updated>2025-05-03T22:24:22Z</updated>

		<summary type="html">&lt;p&gt;imported material&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;* I made a video to show the process of dealing with class variables, see here &amp;#039;&amp;#039;&amp;#039;XXXXTODOXXXXX&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
* Class variables are a good alternative to global variables to store date relative a certain class.&lt;br /&gt;
* Suppose we are working no a class &amp;lt;code&amp;gt;MyClass&amp;lt;/code&amp;gt; and we want to define there two class variables &amp;lt;code&amp;gt;FooVar1&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;FooVar2&amp;lt;/code&amp;gt;.&lt;br /&gt;
* Class variables are defined in the &amp;#039;&amp;#039;&amp;#039;Class definition area&amp;#039;&amp;#039;&amp;#039;, where there are also instance variables, one line below.&lt;br /&gt;
* Class variable name first letter must be in &amp;#039;&amp;#039;&amp;#039;uppercase&amp;#039;&amp;#039;&amp;#039;.&lt;br /&gt;
* Class variables are initialized when the Class is learnt by the system, that is, in general or when you run Cuis or when you load the external package that contains the class definition.&lt;br /&gt;
* If you want to initialize your class variable when class variables when the class is learnt by the system you must do so in the &amp;lt;code&amp;gt;MyClass class &amp;gt;&amp;gt; initialize&amp;lt;/code&amp;gt; method. From there you can set the variables as &amp;lt;code&amp;gt;FooVar1 := 123&amp;lt;/code&amp;gt;.&lt;br /&gt;
* To see the name of class variables in a class use &amp;lt;code&amp;gt;MyClass classPool&amp;lt;/code&amp;gt;.&lt;br /&gt;
* Class variables can be modified and red directly only &amp;#039;&amp;#039;&amp;#039;class method accessors&amp;#039;&amp;#039;&amp;#039;.&lt;br /&gt;
* Class variables are inherited by subclasses.&lt;br /&gt;
* Class variables are fixed for all instances of the class.&lt;/div&gt;</summary>
		<author><name>Nmingott</name></author>
	</entry>
</feed>