<?xml version="1.0"?>
<?xml-stylesheet type="text/css" href="https://script.spoken-tutorial.org/skins/common/feed.css?303"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>https://script.spoken-tutorial.org/index.php?action=history&amp;feed=atom&amp;title=Java%2FC2%2FInstance-fields%2FEnglish</id>
		<title>Java/C2/Instance-fields/English - Revision history</title>
		<link rel="self" type="application/atom+xml" href="https://script.spoken-tutorial.org/index.php?action=history&amp;feed=atom&amp;title=Java%2FC2%2FInstance-fields%2FEnglish"/>
		<link rel="alternate" type="text/html" href="https://script.spoken-tutorial.org/index.php?title=Java/C2/Instance-fields/English&amp;action=history"/>
		<updated>2026-04-09T01:32:33Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.23.17</generator>

	<entry>
		<id>https://script.spoken-tutorial.org/index.php?title=Java/C2/Instance-fields/English&amp;diff=102&amp;oldid=prev</id>
		<title>Chandrika: Created page with ''''Title of script''': Instance Fields  '''Author: '''arya  '''Keywords: '''video''' '''tutorial,''' '''dot operator, instance fields    {| style=&quot;border-spacing:0;&quot; ! &lt;center&gt;Vi…'</title>
		<link rel="alternate" type="text/html" href="https://script.spoken-tutorial.org/index.php?title=Java/C2/Instance-fields/English&amp;diff=102&amp;oldid=prev"/>
				<updated>2012-11-27T10:15:13Z</updated>
		
		<summary type="html">&lt;p&gt;Created page with &amp;#039;&amp;#039;&amp;#039;&amp;#039;Title of script&amp;#039;&amp;#039;&amp;#039;: Instance Fields  &amp;#039;&amp;#039;&amp;#039;Author: &amp;#039;&amp;#039;&amp;#039;arya  &amp;#039;&amp;#039;&amp;#039;Keywords: &amp;#039;&amp;#039;&amp;#039;video&amp;#039;&amp;#039;&amp;#039; &amp;#039;&amp;#039;&amp;#039;tutorial,&amp;#039;&amp;#039;&amp;#039; &amp;#039;&amp;#039;&amp;#039;dot operator, instance fields    {| style=&amp;quot;border-spacing:0;&amp;quot; ! &amp;lt;center&amp;gt;Vi…&amp;#039;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;'''Title of script''': Instance Fields&lt;br /&gt;
&lt;br /&gt;
'''Author: '''arya&lt;br /&gt;
&lt;br /&gt;
'''Keywords: '''video''' '''tutorial,''' '''dot operator, instance fields&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;border-spacing:0;&amp;quot;&lt;br /&gt;
! &amp;lt;center&amp;gt;Visual Cue&amp;lt;/center&amp;gt;&lt;br /&gt;
! &amp;lt;center&amp;gt;Narration&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;border-top:none;border-bottom:0.035cm solid #000000;border-left:0.035cm solid #000000;border-right:none;padding:0.097cm;&amp;quot;| Slide 1 &lt;br /&gt;
&lt;br /&gt;
Opening slide&lt;br /&gt;
| style=&amp;quot;border-top:none;border-bottom:0.035cm solid #000000;border-left:0.035cm solid #000000;border-right:0.035cm solid #000000;padding:0.097cm;&amp;quot;| Welcome to the Spoken Tutorial on '''Instance Fields''' in '''Java'''.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;border-top:none;border-bottom:0.035cm solid #000000;border-left:0.035cm solid #000000;border-right:none;padding:0.097cm;&amp;quot;| Slide 2&lt;br /&gt;
&lt;br /&gt;
Learning Objectives&lt;br /&gt;
| style=&amp;quot;border-top:none;border-bottom:0.035cm solid #000000;border-left:0.035cm solid #000000;border-right:0.035cm solid #000000;padding:0.097cm;&amp;quot;| In this tutorial we will learn &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
- About '''instance fields'''&lt;br /&gt;
&lt;br /&gt;
- To access the '''instance fields '''of a '''class'''&lt;br /&gt;
&lt;br /&gt;
-'''Modifiers''' for '''instance fields'''&lt;br /&gt;
&lt;br /&gt;
-Why '''instance fields''' are called so?&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;border-top:none;border-bottom:0.035cm solid #000000;border-left:0.035cm solid #000000;border-right:none;padding:0.097cm;&amp;quot;| Slide 3&lt;br /&gt;
&lt;br /&gt;
System Requirements&lt;br /&gt;
| style=&amp;quot;border-top:none;border-bottom:0.035cm solid #000000;border-left:0.035cm solid #000000;border-right:0.035cm solid #000000;padding:0.097cm;&amp;quot;| Here we are using &lt;br /&gt;
&lt;br /&gt;
* Ubuntu version 11.10 &lt;br /&gt;
* Java Development Environment jdk 1.6&lt;br /&gt;
* Eclipse 3.7&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;border-top:none;border-bottom:0.035cm solid #000000;border-left:0.035cm solid #000000;border-right:none;padding:0.097cm;&amp;quot;| Slide 4&lt;br /&gt;
&lt;br /&gt;
Prerequisites&lt;br /&gt;
| style=&amp;quot;border-top:none;border-bottom:0.035cm solid #000000;border-left:0.035cm solid #000000;border-right:0.035cm solid #000000;padding:0.097cm;&amp;quot;| To follow this tutorial you must know &lt;br /&gt;
&lt;br /&gt;
how to create a '''class '''in '''Java '''using '''Eclipse'''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
You must also know how to create an '''object '''for the '''class'''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
If not, for relevant tutorials please visit our website which is as shown,&lt;br /&gt;
&lt;br /&gt;
('''http'''://'''www.spoken'''-'''tutorial.org''') &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;border-top:none;border-bottom:0.035cm solid #000000;border-left:0.035cm solid #000000;border-right:none;padding:0.097cm;&amp;quot;| Slide 5 &lt;br /&gt;
&lt;br /&gt;
'''Instance Fields'''&lt;br /&gt;
| style=&amp;quot;border-top:none;border-bottom:0.035cm solid #000000;border-left:0.035cm solid #000000;border-right:0.035cm solid #000000;padding:0.097cm;&amp;quot;| We know that objects store their individual states in''' fields'''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
These fields are declared without the &amp;lt;tt&amp;gt;'''static'''&amp;lt;/tt&amp;gt; keyword.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
We will learn about''' static fields''' in the coming tutorials.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Non-static fields''' are also known as '''''instance variables '''''or''''' instance fields.'''''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;border-top:none;border-bottom:0.035cm solid #000000;border-left:0.035cm solid #000000;border-right:none;padding:0.097cm;&amp;quot;| Switch to eclipse&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Open Student.java file.&lt;br /&gt;
| style=&amp;quot;border-top:none;border-bottom:0.035cm solid #000000;border-left:0.035cm solid #000000;border-right:0.035cm solid #000000;padding:0.097cm;&amp;quot;| Let us go back to the '''Student class''' we had already created.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
We can see that here''' roll_no''' and '''name''' are the '''instance fields''' of this '''class'''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Now, we will learn how to access these '''fields'''.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;border-top:none;border-bottom:0.035cm solid #000000;border-left:0.035cm solid #000000;border-right:none;padding:0.097cm;&amp;quot;| Open TestStudent.java file&lt;br /&gt;
| style=&amp;quot;border-top:none;border-bottom:0.035cm solid #000000;border-left:0.035cm solid #000000;border-right:0.035cm solid #000000;padding:0.097cm;&amp;quot;| For that, let us open the '''TestStudent class '''which we had already created.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
We can remove the statement for creating the second '''object'''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
We will also remove the '''println '''statements.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Now we will access the fields '''roll_no''' and '''name''' using '''stud1 '''and the''' dot operator'''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
So type '''System''' ''dot'' '''out''' ''dot'' '''println''' within brackets and double quotes '''The roll number is''', then ''plus '''''stud1''''' dot '''''roll_no''''' ''and then ''semicolon''. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Next line type '''System''' ''dot'' '''out''' ''dot'' '''println''' within brackets and double quotes '''The name is''', then ''plus '''''stud1''''' dot '''''name''''' ''and then ''semicolon''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Now, '''save''' and '''run''' the file '''TestStudent.java'''.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;border-top:none;border-bottom:0.035cm solid #000000;border-left:0.035cm solid #000000;border-right:none;padding:0.097cm;&amp;quot;| Highlight the output.&lt;br /&gt;
| style=&amp;quot;border-top:none;border-bottom:0.035cm solid #000000;border-left:0.035cm solid #000000;border-right:0.035cm solid #000000;padding:0.097cm;&amp;quot;| We get the output as &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''The roll number is 0.'''&lt;br /&gt;
&lt;br /&gt;
'''The name is null.'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;border-top:none;border-bottom:0.035cm solid #000000;border-left:0.035cm solid #000000;border-right:none;padding:0.097cm;&amp;quot;| Open Student.java file and highlight the variables&lt;br /&gt;
| style=&amp;quot;border-top:none;border-bottom:0.035cm solid #000000;border-left:0.035cm solid #000000;border-right:0.035cm solid #000000;padding:0.097cm;&amp;quot;| This is because, we have not initialized the '''variables''' to any value.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In '''Java''', the '''fields''' cannot have random values.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
After the '''memory''' is allocated for the '''object''' the '''fields''' are initialized to '''null '''or '''zero'''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This work is done by the '''constructor'''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
We will learn about '''constructor''' in the coming tutorials.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;border-top:none;border-bottom:0.035cm solid #000000;border-left:0.035cm solid #000000;border-right:none;padding:0.097cm;&amp;quot;| Initalize roll_no and name&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Save and run the file&lt;br /&gt;
| style=&amp;quot;border-top:none;border-bottom:0.035cm solid #000000;border-left:0.035cm solid #000000;border-right:0.035cm solid #000000;padding:0.097cm;&amp;quot;| Now, we will initialize the '''fields''' and see the '''output'''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Type''' roll_no''' equal to '''50''' and '''name''' equal to within double quotes '''Raju'''.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;border-top:none;border-bottom:0.035cm solid #000000;border-left:0.035cm solid #000000;border-right:none;padding:0.097cm;&amp;quot;| Highlight the output&lt;br /&gt;
| style=&amp;quot;border-top:none;border-bottom:0.035cm solid #000000;border-left:0.035cm solid #000000;border-right:0.035cm solid #000000;padding:0.097cm;&amp;quot;| Now, '''save '''and '''run '''the file.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
We get the '''output''' as '''The roll number is 50'''. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''The name is Raju'''.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;border-top:none;border-bottom:0.035cm solid #000000;border-left:0.035cm solid #000000;border-right:none;padding:0.097cm;&amp;quot;| Open Student.java&lt;br /&gt;
| style=&amp;quot;border-top:none;border-bottom:0.035cm solid #000000;border-left:0.035cm solid #000000;border-right:0.035cm solid #000000;padding:0.097cm;&amp;quot;| Let us come back to the '''Student''' class.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
We can see that here the '''fields '''have no '''modifier '''or''' '''the''' default modifier'''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Recall '''modifiers''' we had discussed in '''Creating Classes.'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
We can access the fields because both '''Student.java''' and '''TestStudent.java''' are in the same '''package'''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
We can see that here they are in the same '''default package'''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
We will learn about '''packages''' in the later tutorials.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;border-top:none;border-bottom:0.035cm solid #000000;border-left:0.035cm solid #000000;border-right:none;padding:0.097cm;&amp;quot;| Type private before every fields.&lt;br /&gt;
| style=&amp;quot;border-top:none;border-bottom:0.035cm solid #000000;border-left:0.035cm solid #000000;border-right:0.035cm solid #000000;padding:0.097cm;&amp;quot;| We will now change the modifier to '''private'''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
So before the '''field''' declarations type '''private'''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Now '''save''' the file '''Student.java'''.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;border-top:none;border-bottom:0.035cm solid #000000;border-left:0.035cm solid #000000;border-right:none;padding:0.097cm;&amp;quot;| Open TestStudent.java&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Hover the mouse over the error.&lt;br /&gt;
| style=&amp;quot;border-top:none;border-bottom:0.035cm solid #000000;border-left:0.035cm solid #000000;border-right:0.035cm solid #000000;padding:0.097cm;&amp;quot;| We can see that we get errors in '''TestStudent.java'''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Hover the mouse over the error symbol.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
It says '''The field Student '''''dot '''''roll '''''underscore '''''number '''is not visible.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''The field Student '''''dot '''''name '''is not visible.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This is because private fields can be accessed only within its own class.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
You can try accessing '''roll_no''' and '''name''' from the '''Student class '''itself.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
You will find that you can access them without any error.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;border-top:none;border-bottom:0.035cm solid #000000;border-left:0.035cm solid #000000;border-right:none;padding:0.097cm;&amp;quot;| Open Student.java&lt;br /&gt;
| style=&amp;quot;border-top:none;border-bottom:0.035cm solid #000000;border-left:0.035cm solid #000000;border-right:0.035cm solid #000000;padding:0.097cm;&amp;quot;| Now, come back to '''Student''' '''class'''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Let us change the '''modifier''' to '''protected'''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;border-top:none;border-bottom:0.035cm solid #000000;border-left:0.035cm solid #000000;border-right:none;padding:0.097cm;&amp;quot;| '''Save''' and '''Run'''&lt;br /&gt;
| style=&amp;quot;border-top:none;border-bottom:0.035cm solid #000000;border-left:0.035cm solid #000000;border-right:0.035cm solid #000000;padding:0.097cm;&amp;quot;| '''Save''' and '''Run''' the program&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;border-top:none;border-bottom:0.035cm solid #000000;border-left:0.035cm solid #000000;border-right:none;padding:0.097cm;&amp;quot;| Point to the '''output'''&lt;br /&gt;
| style=&amp;quot;border-top:none;border-bottom:0.035cm solid #000000;border-left:0.035cm solid #000000;border-right:0.035cm solid #000000;padding:0.097cm;&amp;quot;| We see the '''output''' on the console.&lt;br /&gt;
&lt;br /&gt;
This is because '''protected fields''' can be accessed within the same '''package'''.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;border-top:none;border-bottom:0.035cm solid #000000;border-left:0.035cm solid #000000;border-right:none;padding:0.097cm;&amp;quot;| Slide 6&lt;br /&gt;
| style=&amp;quot;border-top:none;border-bottom:0.035cm solid #000000;border-left:0.035cm solid #000000;border-right:0.035cm solid #000000;padding:0.097cm;&amp;quot;| '''Instance fields''' are called so because their values are unique to each '''''instance''''' of a class.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In other words each object of a class will have unique values.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;border-top:none;border-bottom:0.035cm solid #000000;border-left:0.035cm solid #000000;border-right:none;padding:0.097cm;&amp;quot;| Open TestStudent class&lt;br /&gt;
| style=&amp;quot;border-top:none;border-bottom:0.035cm solid #000000;border-left:0.035cm solid #000000;border-right:0.035cm solid #000000;padding:0.097cm;&amp;quot;| Let us go to the '''TestStudent class'''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Here, we will create one more object of the '''TestStudent class'''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
So type '''Student''' space '''stud2''' equal to '''new''' space '''Student''' , opening and closing brackets semicolon.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
We will now initialize both the objects here.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
So next line type '''stud1''' ''dot '''''roll_no''' equal to '''20 '''and ''semicolon.''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Then type '''stud1''' ''dot'' '''name''' equal to within double quotes '''Ramu '''''semicolon''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Thus we have initialized the fields for the first object.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Now, we will initialize the fields for the second object.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
So type '''stud2''' ''dot'' '''roll_no''' equal to '''30 '''and ''semicolon''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Then type '''stud2''' ''dot'' '''name''' equal to within double quotes''' Shyamu '''''semicolon'''''.'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Now, type System dot out dot println within brackets and double quotes '''The roll number is''', then ''plus '''''stud2 '''''dot '''''roll_no''''' ''and then ''semicolon''. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Next line type '''System''' ''dot'' '''out''' ''dot'' '''println''' within brackets and double quotes '''The name is''', then ''plus '''''stud2 '''''dot '''''name''''' ''and then ''semicolon''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Now, '''save''' and''' run '''the file.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;border-top:none;border-bottom:0.035cm solid #000000;border-left:0.035cm solid #000000;border-right:none;padding:0.097cm;&amp;quot;| Highlight the output.&lt;br /&gt;
| style=&amp;quot;border-top:none;border-bottom:0.035cm solid #000000;border-left:0.035cm solid #000000;border-right:0.035cm solid #000000;padding:0.097cm;&amp;quot;| We get the output as follows. &lt;br /&gt;
&lt;br /&gt;
Here both '''stud1''' and '''stud2''' are referring to two different '''objects'''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This means that the two '''objects''' have unique values.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
We can see that here.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The first object has values 20 and Ramu.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The second object has values 30 and Shyamu.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;border-top:none;border-bottom:0.035cm solid #000000;border-left:0.035cm solid #000000;border-right:none;padding:0.097cm;&amp;quot;| Open TestStudent.java&lt;br /&gt;
| style=&amp;quot;border-top:none;border-bottom:0.035cm solid #000000;border-left:0.035cm solid #000000;border-right:0.035cm solid #000000;padding:0.097cm;&amp;quot;| Now, let us create one more '''object.'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
So type '''Student''' space '''stud3''' equal to '''new''' space '''Student''' and then opening and closing brackets.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
We will now, print the values the third '''object''' contains.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Now,''' save''' and '''run''' the file.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;border-top:none;border-bottom:0.035cm solid #000000;border-left:0.035cm solid #000000;border-right:none;padding:0.097cm;&amp;quot;| Highlight the output&lt;br /&gt;
| style=&amp;quot;border-top:none;border-bottom:0.035cm solid #000000;border-left:0.035cm solid #000000;border-right:0.035cm solid #000000;padding:0.097cm;&amp;quot;| We see that the third '''object''' contains the values''' 50''' and '''Raju.'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;border-top:none;border-bottom:0.035cm solid #000000;border-left:0.035cm solid #000000;border-right:none;padding:0.097cm;&amp;quot;| Open Student.java&lt;br /&gt;
| style=&amp;quot;border-top:none;border-bottom:0.035cm solid #000000;border-left:0.035cm solid #000000;border-right:0.035cm solid #000000;padding:0.097cm;&amp;quot;| This is because we had explicitly initialized the fields of the '''Student''' class.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Now, try de-initializing the fields and see the output for the third object.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;border-top:none;border-bottom:0.035cm solid #000000;border-left:0.035cm solid #000000;border-right:none;padding:0.097cm;&amp;quot;| Slide 7&lt;br /&gt;
&lt;br /&gt;
Summary&lt;br /&gt;
| style=&amp;quot;border-top:none;border-bottom:0.035cm solid #000000;border-left:0.035cm solid #000000;border-right:0.035cm solid #000000;padding:0.097cm;&amp;quot;| So in this tutorial, we have learnt &lt;br /&gt;
&lt;br /&gt;
* About instance fields.&lt;br /&gt;
* Accessing the fields using dot operator.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;border-top:none;border-bottom:0.035cm solid #000000;border-left:0.035cm solid #000000;border-right:none;padding:0.097cm;&amp;quot;| Slide 8&lt;br /&gt;
&lt;br /&gt;
Assignment&lt;br /&gt;
| style=&amp;quot;border-top:none;border-bottom:0.035cm solid #000000;border-left:0.035cm solid #000000;border-right:0.035cm solid #000000;padding:0.097cm;&amp;quot;| For self assessment,&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Create another object stud2 in the TestStudent class already created.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Then initialize the values of the two objects using dot operator.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Use 55 and Priya as values for first object.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Use 45 and Sandeep as values for second object.&lt;br /&gt;
&lt;br /&gt;
Display the values for both the objects in the output.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;border-top:none;border-bottom:0.035cm solid #000000;border-left:0.035cm solid #000000;border-right:none;padding:0.097cm;&amp;quot;| Slide 8&lt;br /&gt;
&lt;br /&gt;
About Slide&lt;br /&gt;
| style=&amp;quot;border-top:none;border-bottom:0.035cm solid #000000;border-left:0.035cm solid #000000;border-right:0.035cm solid #000000;padding:0.097cm;&amp;quot;| To know more about the Spoken Tutorial Project&lt;br /&gt;
* Watch the video available at [http://spoken-tutorial.org/What_is_a_Spoken_Tutorial http://spoken-][http://spoken-tutorial.org/What_is_a_Spoken_Tutorial tutorial.org/What_is_a_Spoken_Tutorial] &lt;br /&gt;
* It summarizes the Spoken Tutorial project &lt;br /&gt;
&lt;br /&gt;
* If you do not have good bandwidth, you can download and watch it &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;border-top:none;border-bottom:0.035cm solid #000000;border-left:0.035cm solid #000000;border-right:none;padding:0.097cm;&amp;quot;| Slide 9&lt;br /&gt;
&lt;br /&gt;
About Slide &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
| style=&amp;quot;border-top:none;border-bottom:0.035cm solid #000000;border-left:0.035cm solid #000000;border-right:0.035cm solid #000000;padding:0.097cm;&amp;quot;| The Spoken Tutorial Project Team &lt;br /&gt;
&lt;br /&gt;
* Conducts workshops using spoken tutorials &lt;br /&gt;
&lt;br /&gt;
* Gives certificates for those who pass an online test &lt;br /&gt;
&lt;br /&gt;
* For more details, please write to contact@spoken-tutorial.org &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;border-top:none;border-bottom:0.035cm solid #000000;border-left:0.035cm solid #000000;border-right:none;padding:0.097cm;&amp;quot;| Slide 10&lt;br /&gt;
&lt;br /&gt;
Acknowledgment&lt;br /&gt;
| style=&amp;quot;border-top:none;border-bottom:0.035cm solid #000000;border-left:0.035cm solid #000000;border-right:0.035cm solid #000000;padding:0.097cm;&amp;quot;| Spoken Tutorial Project is a part of the Talk to a Teacher project &lt;br /&gt;
&lt;br /&gt;
* It is supported by the National Mission on Education through ICT, MHRD, Government of India &lt;br /&gt;
&lt;br /&gt;
* More information on this Mission is available at &lt;br /&gt;
&lt;br /&gt;
* [http://spoken-tutorial.org/NMEICT-Intro http://spoken-tutorial.org/NMEICT-Intro] &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;border-top:none;border-bottom:0.035cm solid #000000;border-left:0.035cm solid #000000;border-right:none;padding:0.097cm;&amp;quot;| &lt;br /&gt;
| style=&amp;quot;border-top:none;border-bottom:0.035cm solid #000000;border-left:0.035cm solid #000000;border-right:0.035cm solid #000000;padding:0.097cm;&amp;quot;| We have come to the end of this tutorial.&lt;br /&gt;
&lt;br /&gt;
Thanks for joining.&lt;br /&gt;
&lt;br /&gt;
This is Arya Ratish signing off. &lt;br /&gt;
&lt;br /&gt;
Jai Hind. &lt;br /&gt;
&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>Chandrika</name></author>	</entry>

	</feed>