<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Chris Ford &#187; M255</title>
	<atom:link href="http://www.chrisfordblog.com/tag/m255/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.chrisfordblog.com</link>
	<description>Just another blog</description>
	<lastBuildDate>Thu, 17 Dec 2009 21:30:06 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Accidental Open University M255 Revision</title>
		<link>http://www.chrisfordblog.com/2009/05/open-university-m255-revision/</link>
		<comments>http://www.chrisfordblog.com/2009/05/open-university-m255-revision/#comments</comments>
		<pubDate>Thu, 28 May 2009 09:33:34 +0000</pubDate>
		<dc:creator>Chris</dc:creator>
				<category><![CDATA[Everything Else]]></category>
		<category><![CDATA[M255]]></category>
		<category><![CDATA[M257]]></category>
		<category><![CDATA[Open University]]></category>
		<category><![CDATA[OU]]></category>
		<category><![CDATA[Revision]]></category>

		<guid isPermaLink="false">http://www.chrisfordblog.com/?p=379</guid>
		<description><![CDATA[I&#8217;m currently trying to do some revision for my upcoming Open University exam M257 &#8220;Putting Java to Work.&#8221; To avoid doing this in a doing it sort of way I started making an AtoZ glossary from the various PDF&#8217;s to aid my revision attempts. Problem is that half way through completing this I discovered I was [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m currently trying to do some revision for my upcoming Open University exam M257 &#8220;Putting Java to Work.&#8221; To avoid doing this in a doing it sort of way I started making an AtoZ glossary from the various PDF&#8217;s to aid my revision attempts. Problem is that half way through completing this I discovered I was using PDF&#8217;s for the wrong course, M255 instead of M257. Very annoying! I&#8217;ve posted the accidentally half completed M255 course glossary below, as it may help somebody else.</p>
<table style="width: 596pt; border-collapse: collapse;" border="0" cellspacing="0" cellpadding="0" width="795">
<colgroup span="1">
<col style="width: 596pt; mso-width-source: userset; mso-width-alt: 29074;" span="1" width="795"></col>
</colgroup>
<tbody>
<tr style="height: 51pt;" height="68">
<td class="xl27" style="width: 596pt; height: 51pt; background-color: transparent; border: #ece9d8;" width="795" height="68"><span style="font-size: x-small;"><span style="font-family: Arial;"><strong>accessor message</strong><span class="font0">An accessor message is either a getter or a setter message. For example, the messages getPosition( ) and setPosition( ) are accessor messages for the instance variable position held by instances of the Frog class. The getter message getPosition( ) returns the value of the instance variable position, while the setter message setPosition( ) changes the value of position.</span></span></span></td>
</tr>
<tr style="height: 12.75pt;" height="17">
<td class="xl24" style="width: 596pt; height: 12.75pt; background-color: transparent; border: #ece9d8;" width="795" height="17"><span style="font-size: x-small;"><span style="font-family: Arial;"><strong>accessor message</strong><span class="font5"> </span><span class="font6">The general term for either a </span><span class="font5">setter </span><span class="font6">or a </span><span class="font5">getter message</span><span class="font6">.<span style="mso-spacerun: yes"> </span></span></span></span></td>
</tr>
<tr style="height: 12.75pt;" height="17">
<td class="xl27" style="width: 596pt; height: 12.75pt; background-color: transparent; border: #ece9d8;" width="795" height="17"><span style="font-size: x-small;"><span style="font-family: Arial;"><strong>accessor method</strong><span class="font0">A method that implements an accessor message.See getter method and setter method.</span></span></span></td>
</tr>
<tr style="height: 63.75pt;" height="85">
<td class="xl24" style="width: 596pt; height: 63.75pt; background-color: transparent; border: #ece9d8;" width="795" height="85"><span style="font-size: x-small;"><span style="font-family: Arial;"><strong>argument</strong><span class="font5"> </span><span class="font6">Extra information supplied with a </span><span class="font5">message</span><span class="font6">. For example, when requesting a Frog object to change its colour to that of another Frog object, it is necessary to provide that other Frog object as an argument. This is seen in the message-send frog1.sameColourAs(frog2). A message can have zero, one or more arguments. There is no argument in the message getColour( ). The message setColour( OUColour.PURPLE) has one argument (namely OUColour.PURPLE) supplying information on which colour is to be chosen. Two arguments (yourAccount and 50) supply information in the message transfer(yourAccount, 50).<span style="mso-spacerun: yes"> </span></span></span></span></td>
</tr>
<tr style="height: 25.5pt;" height="34">
<td class="xl27" style="width: 596pt; height: 25.5pt; background-color: transparent; border: #ece9d8;" width="795" height="34"><span style="font-size: x-small;"><span style="font-family: Arial;"><strong>assignment statement </strong><span class="font0">A statement that tells Java to make a variable reference a particular object or to hold a particular primitive value.</span></span></span></td>
</tr>
<tr style="height: 51pt;" height="68">
<td class="xl27" style="width: 596pt; height: 51pt; background-color: transparent; border: #ece9d8;" width="795" height="68"><span style="font-size: x-small;"><span style="font-family: Arial;"><strong>assignment </strong><span class="font0">When using objects, assignment is the process which results in the variable on the left-hand side of the assignment operator referencing the object returned by the expression on the right-hand side (this is called assignment using reference semantics). When using values of primitive data types, assignment is the process that results in the variable on the left-hand side containing a copy of the value returned by the right-hand side (this is referred to as assignment using value semantics).</span></span></span></td>
</tr>
<tr style="height: 12.75pt;" height="17">
<td class="xl25" style="width: 596pt; height: 12.75pt; background-color: transparent; border: #ece9d8;" width="795" height="17"><span style="font-size: x-small;"><span style="font-family: Arial;"><strong>attribute</strong><span class="font5"> </span><span class="font6">Some property or characteristic of an </span><span class="font5">object</span><span class="font6">,suchas </span><span class="font7">position </span><span class="font6">for </span><span class="font7">Frog </span><span class="font6">objects, or </span><span class="font7">balance </span><span class="font6">for </span><span class="font7">Account </span><span class="font6">objects.</span></span></span></td>
</tr>
<tr style="height: 25.5pt;" height="34">
<td class="xl25" style="width: 596pt; height: 25.5pt; background-color: transparent; border: #ece9d8;" width="795" height="34"><span style="font-size: x-small;"><span style="font-family: Arial;"><strong>attribute value</strong><span class="font5"> </span><span class="font6">The current value of an </span><span class="font5">attribute</span><span class="font6">. For example, a </span><span class="font7">Frog </span><span class="font6">object has the attributes </span><span class="font7">colour </span><span class="font6">and </span><span class="font7">position</span><span class="font6">. The attribute </span><span class="font7">colour </span><span class="font6">of a particular object might have the value </span><span class="font7">OUColour.BLUE </span><span class="font6">and the attribute </span><span class="font7">position </span><span class="font6">might have the value </span><span class="font7">1</span><span class="font6">.<span style="mso-spacerun: yes"> </span></span></span></span></td>
</tr>
<tr style="height: 12.75pt;" height="17">
<td class="xl25" style="width: 596pt; height: 12.75pt; background-color: transparent; border: #ece9d8;" width="795" height="17"><span style="font-size: x-small;"><span style="font-family: Arial;"><strong>behaviour </strong><span class="font6">This term is used to describe the way an </span><span class="font5">object </span><span class="font6">responds to the </span><span class="font5">messages </span><span class="font6">in its </span><span class="font5">protocol</span><span class="font6">.<span style="mso-spacerun: yes"> </span></span></span></span></td>
</tr>
<tr style="height: 51pt;" height="68">
<td class="xl27" style="width: 596pt; height: 51pt; background-color: transparent; border: #ece9d8;" width="795" height="68"><span style="font-size: x-small;"><span style="font-family: Arial;"><strong>bytecode</strong><span class="font0">Bytecode is the intermediate code produced by the Java compiler.In BlueJ, compilation is done when the Compile button is pressed. This will create a bytecode file, for example Frog.class, from the source code file Frog.java.The bytecode file is portable, because each computer that can run Java programs has a Java Virtual Machine – a program itself – that understands bytecode and converts it into the machine code required for that particular computer.</span></span></span></td>
</tr>
<tr style="height: 25.5pt;" height="34">
<td class="xl24" style="width: 596pt; height: 25.5pt; background-color: transparent; border: #ece9d8;" width="795" height="34"><span style="font-size: x-small;"><span style="font-family: Arial;"><strong>class</strong><span class="font5"> </span><span class="font6">A class is a template that serves to describe all instances (objects) of that class. It defines what </span><span class="font5">attributes </span><span class="font6">the objects should have and their </span><span class="font5">protocol </span><span class="font8">– </span><span class="font6">what messages they can respond to.<span style="mso-spacerun: yes"> </span></span></span></span></td>
</tr>
<tr style="height: 51pt;" height="68">
<td class="xl27" style="width: 596pt; height: 51pt; background-color: transparent; border: #ece9d8;" width="795" height="68"><span style="font-size: x-small;"><span style="font-family: Arial;"><strong>comment</strong><span class="font0"> A comment is a piece of text in program code that is ignored when executing the code. In Java multi-line comments are delimited by /* and */. Single line comments are simply preceded by //. A comment can generally be placed anywhere in the code of a class, with the exception of method comments – method comments are placed between /** and */ and must appear immediately before the method header.</span></span></span></p>
<p><span id="more-379"></span></td>
</tr>
<tr style="height: 25.5pt;" height="34">
<td class="xl27" style="width: 596pt; height: 25.5pt; background-color: transparent; border: #ece9d8;" width="795" height="34"><span style="font-size: x-small;"><span style="font-family: Arial;"><strong>compiler</strong><span class="font0">A piece of software which first checks that text written in a high-level language is correctly formed. If the check is successful, then the source code is compiled into bytecode.</span></span></span></td>
</tr>
<tr style="height: 25.5pt;" height="34">
<td class="xl27" style="width: 596pt; height: 25.5pt; background-color: transparent; border: #ece9d8;" width="795" height="34"><span style="font-size: x-small;"><span style="font-family: Arial;"><strong>compound expression</strong><span class="font0"> An expression built up using other sub-expressions; for example, the following is a compound expression: (3 + 2) * (6 -3)</span></span></span></td>
</tr>
<tr style="height: 25.5pt;" height="34">
<td class="xl27" style="width: 596pt; height: 25.5pt; background-color: transparent; border: #ece9d8;" width="795" height="34"><span style="font-size: x-small;"><span style="font-family: Arial;"><strong>concatenation</strong><span class="font0"> The joining of two strings. In Java the string concatenation operator is </span><span class="font9">+ (the plus sign). For example, &#8220;Milton &#8221; + &#8220;Keynes&#8221; evaluates to &#8220;Milton Keynes&#8221;.</span></span></span></td>
</tr>
<tr style="height: 12.75pt;" height="17">
<td class="xl27" style="width: 596pt; height: 12.75pt; background-color: transparent; border: #ece9d8;" width="795" height="17"><span style="font-size: x-small;"><span style="font-family: Arial;"><strong>constructor</strong><span class="font0"> A special type of message used to initialise a newly created object.</span></span></span></td>
</tr>
<tr style="height: 38.25pt;" height="51">
<td class="xl27" style="width: 596pt; height: 38.25pt; background-color: transparent; border: #ece9d8;" width="795" height="51"><span style="font-size: x-small;"><span style="font-family: Arial;"><strong>data hiding </strong><span class="font0">This is where an object is treated as a black box, with access to the encapsulated data (the instance variables) being possible only through a limited set of methods, i.e. only an object’s own methods are allowed to access the value of an instance variable (either to change it or return it).</span></span></span></td>
</tr>
<tr style="height: 12.75pt;" height="17">
<td class="xl27" style="width: 596pt; height: 12.75pt; background-color: transparent; border: #ece9d8;" width="795" height="17"><span style="font-size: x-small;"><span style="font-family: Arial;"><strong>debugging</strong><span class="font0"> The identification and removal of implementation errors (bugs) from a program.</span></span></span></td>
</tr>
<tr style="height: 51pt;" height="68">
<td class="xl27" style="width: 596pt; height: 51pt; background-color: transparent; border: #ece9d8;" width="795" height="68"><span style="font-size: x-small;"><span style="font-family: Arial;"><strong>encapsulation</strong><span class="font0"> Objects allow you to encapsulate data by incorporating into a single entity (the object) both the data (instance variables) and the behaviour (methods) defined for that data. The concept of encapsulation is very powerful because it allows an efficient division of labour in large software projects. Each team member can work in isolation on one or more classes. The only things that team members need to know about other classes are the names and specifications of the methods.</span></span></span></td>
</tr>
<tr style="height: 12.75pt;" height="17">
<td class="xl27" style="width: 596pt; height: 12.75pt; background-color: transparent; border: #ece9d8;" width="795" height="17"><span style="font-size: x-small;"><span style="font-family: Arial;"><strong>expression</strong><span class="font0"> Code that evaluates to a single value. Expressions are formed from variables, operators and messages.</span></span></span></td>
</tr>
<tr style="height: 12.75pt;" height="17">
<td class="xl27" style="width: 596pt; height: 12.75pt; background-color: transparent; border: #ece9d8;" width="795" height="17"><span style="font-size: x-small;"><span style="font-family: Arial;"><strong>formal argument</strong><span class="font0"> An identifier used in a method to stand for a value that is passed into the method by a message.</span></span></span></td>
</tr>
<tr style="height: 25.5pt;" height="34">
<td class="xl27" style="width: 596pt; height: 25.5pt; background-color: transparent; border: #ece9d8;" width="795" height="34"><span style="font-size: x-small;"><span style="font-family: Arial;"><strong>garbage collection</strong><span class="font0"> The process of destroying objects, which have become unreachable because they are no longer referenced by variables, in order to reclaim their space in memory. In certain programming languages, including Java, this process is automatic.</span></span></span></td>
</tr>
<tr style="height: 25.5pt;" height="34">
<td class="xl25" style="width: 596pt; height: 25.5pt; background-color: transparent; border: #ece9d8;" width="795" height="34"><span style="font-size: x-small;"><span style="font-family: Arial;"><strong>getter message</strong><span class="font5"> </span><span class="font6">A message that returns as its message answer the value of one of a receiver’s attributes. See </span><span class="font5">setter message </span><span class="font6">and </span><span class="font5">accessor message</span><span class="font6">.<span style="mso-spacerun: yes"> </span></span></span></span></td>
</tr>
<tr style="height: 12.75pt;" height="17">
<td class="xl27" style="width: 596pt; height: 12.75pt; background-color: transparent; border: #ece9d8;" width="795" height="17"><span style="font-size: x-small;"><span style="font-family: Arial;"><strong>getter method</strong><span class="font9">An accessor method whose purpose is to return the value of an instance variable as its message answer.</span></span></span></td>
</tr>
<tr style="height: 12.75pt;" height="17">
<td class="xl27" style="width: 596pt; height: 12.75pt; background-color: transparent; border: #ece9d8;" width="795" height="17"><span style="font-size: x-small;"><span style="font-family: Arial;"><strong>identifier</strong><span class="font0"> The name of a variable.</span></span></span></td>
</tr>
<tr style="height: 12.75pt;" height="17">
<td class="xl24" style="width: 596pt; height: 12.75pt; background-color: transparent; border: #ece9d8;" width="795" height="17"><span style="font-size: x-small;"><span style="font-family: Arial;"><strong>initialisation</strong><span class="font5"> </span><span class="font6">The </span><span class="font5">state </span><span class="font6">of an </span><span class="font5">object </span><span class="font6">when it is first created depends on its initialisation.<span style="mso-spacerun: yes"> </span></span></span></span></td>
</tr>
<tr style="height: 25.5pt;" height="34">
<td class="xl25" style="width: 596pt; height: 25.5pt; background-color: transparent; border: #ece9d8;" width="795" height="34"><span style="font-size: x-small;"><span style="font-family: Arial;"><strong>inspector</strong><span class="font5"> </span><span class="font6">An inspector is a tool used in M255 to look at the internal state of </span><span class="font5">objects </span><span class="font6">in a system. It lists the </span><span class="font5">attributes </span><span class="font6">of an object and displays their current values.<span style="mso-spacerun: yes"> </span></span></span></span></td>
</tr>
<tr style="height: 12.75pt;" height="17">
<td class="xl25" style="width: 596pt; height: 12.75pt; background-color: transparent; border: #ece9d8;" width="795" height="17"><span style="font-size: x-small;"><span style="font-family: Arial;"><strong>instance</strong><span class="font5"> </span><span class="font6">An </span><span class="font5">object </span><span class="font6">that belongs to a given </span><span class="font5">class </span><span class="font6">is described as an instance of that class.<span style="mso-spacerun: yes"> </span></span></span></span></td>
</tr>
<tr style="height: 51pt;" height="68">
<td class="xl27" style="width: 596pt; height: 51pt; background-color: transparent; border: #ece9d8;" width="795" height="68"><span style="font-size: x-small;"><span style="font-family: Arial;"><strong>instance variable</strong><span class="font0"> A variable that is common to all the instances of a class but whose value is specific to each instance. Each instance variable either contains a reference to an object or contains a value of some primitive type. For example, Frog objects have the instance variables colour and position. The values of the instance variables of a particular object represent the state of that object.</span></span></span></td>
</tr>
<tr style="height: 25.5pt;" height="34">
<td class="xl26" style="width: 596pt; height: 25.5pt; background-color: transparent; border: #ece9d8;" width="795" height="34"><span style="font-size: x-small;"><span style="font-family: Arial;">Instances of the same class have the same attributes, which are initialised in the same way. They have the same <span class="font5">instance </span><span class="font6">protocol and respond in the same way to each message.<span style="mso-spacerun: yes"> </span></span></span></span></td>
</tr>
<tr style="height: 38.25pt;" height="51">
<td class="xl27" style="width: 596pt; height: 38.25pt; background-color: transparent; border: #ece9d8;" width="795" height="51"><span style="font-size: x-small;"><span style="font-family: Arial;"><strong>integrated development environment (IDE)</strong><span class="font0">A software tool that supports the construction, compilation and execution of a program. BlueJ is an example of an IDE that supports the development of programs in Java and includes libraries of classes and facilities for debugging and program design.</span></span></span></td>
</tr>
<tr style="height: 51pt;" height="68">
<td class="xl27" style="width: 596pt; height: 51pt; background-color: transparent; border: #ece9d8;" width="795" height="68"><span style="font-size: x-small;"><span style="font-family: Arial;"><strong>Javadoc</strong><span class="font0">A program that comes with Java. The Javadoc program picks up information from specially formatted comments and other parts of the class code such as the constructor and the method headers. These are all used to create an HTML file, which describes the class in a standard way. This description is aimed not at the Java compiler, but at human readers (and possibly the writer of the code at a later date, when he or she might well have forgotten what the methods do).</span></span></span></td>
</tr>
<tr style="height: 25.5pt;" height="34">
<td class="xl27" style="width: 596pt; height: 25.5pt; background-color: transparent; border: #ece9d8;" width="795" height="34"><span style="font-size: x-small;"><span style="font-family: Arial;"><strong>literal </strong><span class="font0">A comprehensible textual representation of a primitive value or object. For example, &#8216;X&#8217; is a char literal, 4.237 is a double literal and &#8220;hello there!&#8221; is a String literal.</span></span></span></td>
</tr>
<tr style="height: 38.25pt;" height="51">
<td class="xl25" style="width: 596pt; height: 38.25pt; background-color: transparent; border: #ece9d8;" width="795" height="51"><span style="font-size: x-small;"><span style="font-family: Arial;"><strong>message</strong><span class="font5"> </span><span class="font6">A message is a request for an </span><span class="font5">object </span><span class="font6">to do something. The only way to make an object do something is to send it a message. For example, the position of a Frog object changes when it is sent the message left( ) or right( ); to obtain information on the value of a Frog object’s colour attribute, you send it the message getColour( ).</span></span></span></td>
</tr>
<tr style="height: 51pt;" height="68">
<td class="xl24" style="width: 596pt; height: 51pt; background-color: transparent; border: #ece9d8;" width="795" height="68"><span style="font-size: x-small;"><span style="font-family: Arial;"><strong>message answer</strong><span class="font5"> </span><span class="font6">When a </span><span class="font5">message </span><span class="font6">is senttoan </span><span class="font5">object </span><span class="font6">then, depending on what the message is, a message answer may be returned. A message answer is a value or an object; it is not a message. Sometimes a message answer is used, sometimes it is ignored. A message answer may be used subsequently as the receiver or argument of another message. Enquiry messages (getter messages) often return the value of an attribute, as with the message getColour( ), which returns a value such as OUColour.GREEN.<span style="mso-spacerun: yes"> </span></span></span></span></td>
</tr>
<tr style="height: 12.75pt;" height="17">
<td class="xl27" style="width: 596pt; height: 12.75pt; background-color: transparent; border: #ece9d8;" width="795" height="17"><span style="font-size: x-small;"><span style="font-family: Arial;"><strong>message expression</strong><span class="font0"> A message-send which evaluates to a value, i.e. the message returns an answer.</span></span></span></td>
</tr>
<tr style="height: 25.5pt;" height="34">
<td class="xl24" style="width: 596pt; height: 25.5pt; background-color: transparent; border: #ece9d8;" width="795" height="34"><span style="font-size: x-small;"><span style="font-family: Arial;"><strong>message name</strong><span class="font5"> </span><span class="font6">The name of a </span><span class="font5">message </span><span class="font6">does not include any arguments. For example, the name of the message </span><span class="font7">left( ) </span><span class="font6">is </span><span class="font7">left( )</span><span class="font6">, and the name of the message </span><span class="font7">upBy(6) </span><span class="font6">is </span><span class="font7">upBy( )</span><span class="font6">.<span style="mso-spacerun: yes"> </span></span></span></span></td>
</tr>
<tr style="height: 25.5pt;" height="34">
<td class="xl24" style="width: 596pt; height: 25.5pt; background-color: transparent; border: #ece9d8;" width="795" height="34"><span style="font-size: x-small;"><span style="font-family: Arial;"><strong>message-send</strong><span class="font5"> </span><span class="font6">The code that sends a message to an object </span><span class="font8">– </span><span class="font6">for example, </span><span class="font7">frog1.right( )</span><span class="font6">, which consists of the </span><span class="font5">receiver </span><span class="font6">followed by a full stop and then the </span><span class="font5">message</span><span class="font6">.<span style="mso-spacerun: yes"> </span></span></span></span></td>
</tr>
<tr style="height: 12.75pt;" height="17">
<td class="xl27" style="width: 596pt; height: 12.75pt; background-color: transparent; border: #ece9d8;" width="795" height="17"><span style="font-size: x-small;"><span style="font-family: Arial;"><strong>method body</strong><span class="font0"> That part of a method enclosed by braces that follows the method header.</span></span></span></td>
</tr>
<tr style="height: 38.25pt;" height="51">
<td class="xl27" style="width: 596pt; height: 38.25pt; background-color: transparent; border: #ece9d8;" width="795" height="51"><span style="font-size: x-small;"><span style="font-family: Arial;"><strong>method header</strong><span class="font0">A method header consists of an access modifier (e.g. public), a return value (e.g. int or void) and a name (e.g. setPosition) followed by the formal argument names enclosed in parentheses (e.g. (int aNumber)). For example, the method header for a method whose name is setPosition( ) is public void setPosition(int aNumber).</span></span></span></td>
</tr>
<tr style="height: 12.75pt;" height="17">
<td class="xl27" style="width: 596pt; height: 12.75pt; background-color: transparent; border: #ece9d8;" width="795" height="17"><span style="font-size: x-small;"><span style="font-family: Arial;"><strong>method invocation</strong><span class="font0"> At run-time, selecting and executing a method when an object receives a message.</span></span></span></td>
</tr>
<tr style="height: 25.5pt;" height="34">
<td class="xl27" style="width: 596pt; height: 25.5pt; background-color: transparent; border: #ece9d8;" width="795" height="34"><span style="font-size: x-small;"><span style="font-family: Arial;"><strong>method signature</strong><span class="font0">The name of the method together with the parentheses and the types of any arguments. For example, the signature for the setPosition( ) method in the Frog class is setPosition(int).</span></span></span></td>
</tr>
<tr style="height: 12.75pt;" height="17">
<td class="xl27" style="width: 596pt; height: 12.75pt; background-color: transparent; border: #ece9d8;" width="795" height="17"><span style="font-size: x-small;"><span style="font-family: Arial;"><strong>method</strong><span class="font0"> The code that is invoked by the Java Virtual Machine at run-time when an object receives a message.</span></span></span></td>
</tr>
<tr style="height: 12.75pt;" height="17">
<td class="xl27" style="width: 596pt; height: 12.75pt; background-color: transparent; border: #ece9d8;" width="795" height="17"><span style="font-size: x-small;"><span style="font-family: Arial;"><strong>new</strong><span class="font0"> An operator used to create an object – used in conjunction with a constructor.</span></span></span></td>
</tr>
<tr style="height: 38.25pt;" height="51">
<td class="xl24" style="width: 596pt; height: 38.25pt; background-color: transparent; border: #ece9d8;" width="795" height="51"><span style="font-size: x-small;"><span style="font-family: Arial;"><strong>object</strong><span class="font5"> </span><span class="font6">An object is a software component that has a unique identity and responds to </span><span class="font5">messages</span><span class="font6">. Each object has </span><span class="font5">state </span><span class="font6">and responds to a particular set of messages (its </span><span class="font5">protocol</span><span class="font6">). Thus a </span><span class="font7">Frog </span><span class="font6">object (which has little resemblance to a real-world frog) holds information on its position and colour as values of its </span><span class="font5">attributes </span><span class="font7">position </span><span class="font6">and </span><span class="font7">colour</span><span class="font6">.<span style="mso-spacerun: yes"> </span></span></span></span></td>
</tr>
<tr style="height: 25.5pt;" height="34">
<td class="xl25" style="width: 596pt; height: 25.5pt; background-color: transparent; border: #ece9d8;" width="795" height="34"><span style="font-size: x-small;"><span style="font-family: Arial;"><strong>object-state diagram</strong><span class="font5"> </span><span class="font6">An object-state diagram represents an </span><span class="font5">object</span><span class="font6">. It shows the </span><span class="font5">class </span><span class="font6">of the object, its </span><span class="font5">state </span><span class="font6">in terms of attribute values, and its </span><span class="font5">protocol</span><span class="font6">.<span style="mso-spacerun: yes"> </span></span></span></span></td>
</tr>
<tr style="height: 12.75pt;" height="17">
<td class="xl28" style="width: 596pt; height: 12.75pt; background-color: transparent; border: #ece9d8;" width="795" height="17"><span style="font-size: x-small;"><span style="font-family: Arial;"><strong>parameter</strong><span class="font5"> </span><span class="font6">A synonym for </span><span class="font5">argument</span><span class="font6">.<span style="mso-spacerun: yes"> </span></span></span></span></td>
</tr>
<tr style="height: 38.25pt;" height="51">
<td class="xl24" style="width: 596pt; height: 38.25pt; background-color: transparent; border: #ece9d8;" width="795" height="51"><span style="font-size: x-small;"><span style="font-family: Arial;"><strong>polymorphism</strong><span class="font5"> </span><span class="font6">Any </span><span class="font5">message </span><span class="font6">to which </span><span class="font5">objects </span><span class="font6">of more than one </span><span class="font5">class </span><span class="font6">can respond is said to be polymorphic or to show polymorphism. For example, both Toad and Frog objects respond to the message left( ), but with different behaviours. They also respond to the message green( ), with identical behaviours.<span style="mso-spacerun: yes"> </span></span></span></span></td>
</tr>
<tr style="height: 38.25pt;" height="51">
<td class="xl27" style="width: 596pt; height: 38.25pt; background-color: transparent; border: #ece9d8;" width="795" height="51"><span style="font-size: x-small;"><span style="font-family: Arial;"><strong>primitive data type</strong><span class="font0">A set of values together with operations that can be performed on them. The primitive data types in Java provide a set of basic building blocks from which all the more complex types of data can be built. There are three categories of primitive data type: numbers, characters and Booleans.</span></span></span></td>
</tr>
<tr style="height: 25.5pt;" height="34">
<td class="xl27" style="width: 596pt; height: 25.5pt; background-color: transparent; border: #ece9d8;" width="795" height="34"><span style="font-size: x-small;"><span style="font-family: Arial;"><strong>private</strong><span class="font0"> An access modifier. It tells the Java compiler that the only objects that have access are the object to which it belongs and other objects of the same class.</span></span></span></td>
</tr>
<tr style="height: 12.75pt;" height="17">
<td class="xl28" style="width: 596pt; height: 12.75pt; background-color: transparent; border: #ece9d8;" width="795" height="17"><span style="font-size: x-small;"><span style="font-family: Arial;"><strong>protocol</strong><span class="font5"> </span><span class="font6">The set of </span><span class="font5">messages </span><span class="font6">an </span><span class="font5">object </span><span class="font6">can respond to (understands).<span style="mso-spacerun: yes"> </span></span></span></span></td>
</tr>
<tr style="height: 25.5pt;" height="34">
<td class="xl27" style="width: 596pt; height: 25.5pt; background-color: transparent; border: #ece9d8;" width="795" height="34"><span style="font-size: x-small;"><span style="font-family: Arial;"><strong>pseudo-variable</strong><span class="font0"> A special undeclared variable, visible within a method or constructor, that cannot be changed by assignment. Java has two such variables – this and super.</span></span></span></td>
</tr>
<tr style="height: 12.75pt;" height="17">
<td class="xl27" style="width: 596pt; height: 12.75pt; background-color: transparent; border: #ece9d8;" width="795" height="17"><span style="font-size: x-small;"><span style="font-family: Arial;"><strong>public</strong><span class="font0"> An access modifier. It tells the Java compiler that all objects have access.</span></span></span></td>
</tr>
<tr style="height: 12.75pt;" height="17">
<td class="xl28" style="width: 596pt; height: 12.75pt; background-color: transparent; border: #ece9d8;" width="795" height="17"><span style="font-size: x-small;"><span style="font-family: Arial;"><strong>receiver</strong><span class="font5"> </span><span class="font6">The </span><span class="font5">object </span><span class="font6">to which a </span><span class="font5">message </span><span class="font6">is sent.<span style="mso-spacerun: yes"> </span></span></span></span></td>
</tr>
<tr style="height: 25.5pt;" height="34">
<td class="xl27" style="width: 596pt; height: 25.5pt; background-color: transparent; border: #ece9d8;" width="795" height="34"><span style="font-size: x-small;"><span style="font-family: Arial;"><strong>reference semantics </strong><span class="font0">The situation whereby a variable holds the address of an object, rather than a value.A reference type variable on the left-hand side of an assignment statement always ends up referring to the object on the right-hand side (cf. value semantics).</span></span></span></td>
</tr>
<tr style="height: 12.75pt;" height="17">
<td class="xl27" style="width: 596pt; height: 12.75pt; background-color: transparent; border: #ece9d8;" width="795" height="17"><span style="font-size: x-small;"><span style="font-family: Arial;"><strong>reference type variable</strong><span class="font0"> A variable declared to reference an object of the declared or compatible type.</span></span></span></td>
</tr>
<tr style="height: 12.75pt;" height="17">
<td class="xl25" style="width: 596pt; height: 12.75pt; background-color: transparent; border: #ece9d8;" width="795" height="17"><span style="font-size: x-small;"><span style="font-family: Arial;"><strong>sequence diagram</strong><span class="font5"> </span><span class="font6">A diagram that depicts the interactions between objects, in the form of </span><span class="font5">messages </span><span class="font6">and </span><span class="font5">message answers</span><span class="font6">.<span style="mso-spacerun: yes"> </span></span></span></span></td>
</tr>
<tr style="height: 12.75pt;" height="17">
<td class="xl25" style="width: 596pt; height: 12.75pt; background-color: transparent; border: #ece9d8;" width="795" height="17"><span style="font-size: x-small;"><span style="font-family: Arial;"><strong>setter message</strong><span class="font5"> </span><span class="font6">A message that sets the value of one of a receiver’s attributes. See </span><span class="font5">getter message </span><span class="font6">and </span><span class="font5">accessor message</span><span class="font6">.<span style="mso-spacerun: yes"> </span></span></span></span></td>
</tr>
<tr style="height: 25.5pt;" height="34">
<td class="xl27" style="width: 596pt; height: 25.5pt; background-color: transparent; border: #ece9d8;" width="795" height="34"><span style="font-size: x-small;"><span style="font-family: Arial;"><strong>setter method</strong><span class="font0">An accessor method whose purpose is to assign a new value to an instance variable. The new value is determined by the single argument of the method.</span></span></span></td>
</tr>
<tr style="height: 12.75pt;" height="17">
<td class="xl27" style="width: 596pt; height: 12.75pt; background-color: transparent; border: #ece9d8;" width="795" height="17"><span style="font-size: x-small;"><span style="font-family: Arial;"><strong>signature</strong><span class="font0"> See method signature.</span></span></span></td>
</tr>
<tr style="height: 25.5pt;" height="34">
<td class="xl25" style="width: 596pt; height: 25.5pt; background-color: transparent; border: #ece9d8;" width="795" height="34"><span style="font-size: x-small;"><span style="font-family: Arial;"><strong>state</strong><span class="font5"> </span><span class="font6">The values of the </span><span class="font5">attributes </span><span class="font6">of an </span><span class="font5">object </span><span class="font6">constitute its state. The state of an object can vary over time as the values of its attributes change.<span style="mso-spacerun: yes"> </span></span></span></span></td>
</tr>
<tr style="height: 25.5pt;" height="34">
<td class="xl27" style="width: 596pt; height: 25.5pt; background-color: transparent; border: #ece9d8;" width="795" height="34"><span style="font-size: x-small;"><span style="font-family: Arial;"><strong>statement</strong><span class="font0">A statement represents a single instruction for the compiler or interpreter to translate into bytecode. In Java a statement must always end with a semicolon.</span></span></span></td>
</tr>
<tr style="height: 76.5pt;" height="102">
<td class="xl24" style="width: 596pt; height: 76.5pt; background-color: transparent; border: #ece9d8;" width="795" height="102"><span style="font-size: x-small;"><span style="font-family: Arial;"><strong>subclass</strong><span class="font5"> </span><span class="font6">A subclass is a new </span><span class="font5">class </span><span class="font6">defined in terms of an existing class (its </span><span class="font5">superclass</span><span class="font6">). Instances of a subclass have all the attributes that instances of the superclass have, but may have additional attributes. The protocol of the subclass includes (has at least all the messages of) the protocol of the superclass, but may define additional messages. For example, HoverFrog is a subclass of Frog. The protocol of HoverFrog objects includes that of Frog objects and has, in addition, the messages upBy( ) and downBy( ) to which Frog objects cannot respond. HoverFrog objects have all the attributes of Frog objects (colour and position) and an additional attribute – height.<span style="mso-spacerun: yes"> </span></span></span></span></td>
</tr>
<tr style="height: 12.75pt;" height="17">
<td class="xl24" style="width: 596pt; height: 12.75pt; background-color: transparent; border: #ece9d8;" width="795" height="17"><span style="font-size: x-small;"><span style="font-family: Arial;"><strong>superclass</strong><span class="font5"> </span><span class="font6">If Bisa </span><span class="font5">subclass </span><span class="font6">of A, then A is the superclass of B.</span></span></span></td>
</tr>
<tr style="height: 12.75pt;" height="17">
<td class="xl27" style="width: 596pt; height: 12.75pt; background-color: transparent; border: #ece9d8;" width="795" height="17"><span style="font-size: x-small;"><span style="font-family: Arial;"><strong>syntax</strong><span class="font0"> The structure of statements in a given language.</span></span></span></td>
</tr>
<tr style="height: 12.75pt;" height="17">
<td class="xl27" style="width: 596pt; height: 12.75pt; background-color: transparent; border: #ece9d8;" width="795" height="17"><span style="font-size: x-small;"><span style="font-family: Arial;"><strong>this</strong><span class="font0"> A pseudo-variable used within a method to reference the receiver of the message that activated the method.</span></span></span></td>
</tr>
<tr style="height: 25.5pt;" height="34">
<td class="xl27" style="width: 596pt; height: 25.5pt; background-color: transparent; border: #ece9d8;" width="795" height="34"><span style="font-size: x-small;"><span style="font-family: Arial;"><strong>value semantics </strong><span class="font0">The situation in which a variable holds a value, of some primitive data type.A value type variable on the left-hand side of an assignment statement always ends up holding a copy of the value on the right-hand side (cf. reference semantics).</span></span></span></td>
</tr>
<tr style="height: 12.75pt;" height="17">
<td class="xl27" style="width: 596pt; height: 12.75pt; background-color: transparent; border: #ece9d8;" width="795" height="17"><span style="font-size: x-small;"><span style="font-family: Arial;"><strong>value type variable </strong><span class="font0">A variable declared to hold a value of the declared or compatible primitive type.</span></span></span></td>
</tr>
<tr style="height: 25.5pt;" height="34">
<td class="xl27" style="width: 596pt; height: 25.5pt; background-color: transparent; border: #ece9d8;" width="795" height="34"><span style="font-size: x-small;"><span style="font-family: Arial;"><strong>variable</strong><span class="font0"> A named ‘chunk’ or block of the computer’s memory which can hold either a value of some primitive type or the address (reference) of an object.</span></span></span></td>
</tr>
<tr style="height: 25.5pt;" height="34">
<td class="xl27" style="width: 596pt; height: 25.5pt; background-color: transparent; border: #ece9d8;" width="795" height="34"><span style="font-size: x-small;"><span style="font-family: Arial;"><strong>variable reference diagram</strong><span class="font0"> A diagram showing a reference type variable pointing to a representation of an object with the current values of its attributes.</span></span></span></td>
</tr>
</tbody>
</table>
]]></content:encoded>
			<wfw:commentRss>http://www.chrisfordblog.com/2009/05/open-university-m255-revision/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
