<?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%2FUsing-this-keyword%2FEnglish</id>
		<title>Java/C2/Using-this-keyword/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%2FUsing-this-keyword%2FEnglish"/>
		<link rel="alternate" type="text/html" href="https://script.spoken-tutorial.org/index.php?title=Java/C2/Using-this-keyword/English&amp;action=history"/>
		<updated>2026-04-09T01:51:59Z</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/Using-this-keyword/English&amp;diff=109&amp;oldid=prev</id>
		<title>Chandrika: Created page with ''''Title of script''': Using this keyword  '''Author: '''Arya Ratish  '''Keywords: '''video''' '''tutorial,''' '''this, constructor    {| style=&quot;border-spacing:0;&quot; ! &lt;center&gt;Visu…'</title>
		<link rel="alternate" type="text/html" href="https://script.spoken-tutorial.org/index.php?title=Java/C2/Using-this-keyword/English&amp;diff=109&amp;oldid=prev"/>
				<updated>2012-11-27T10:17:59Z</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;: Using this keyword  &amp;#039;&amp;#039;&amp;#039;Author: &amp;#039;&amp;#039;&amp;#039;Arya Ratish  &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;this, constructor    {| style=&amp;quot;border-spacing:0;&amp;quot; ! &amp;lt;center&amp;gt;Visu…&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''': Using this keyword&lt;br /&gt;
&lt;br /&gt;
'''Author: '''Arya Ratish&lt;br /&gt;
&lt;br /&gt;
'''Keywords: '''video''' '''tutorial,''' '''this, constructor&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 '''using this keyword''' 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;
- About use of '''this''' keyword &lt;br /&gt;
&lt;br /&gt;
- To use '''this''' keyword with '''fields'''&lt;br /&gt;
&lt;br /&gt;
-To use '''this '''keyword for chaining of '''constructors'''.&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 '''default constructor''' in '''java''' using '''eclipse'''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
You must also know how to create a '''parameterized constructor''' in '''java'''.&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;
Use of''' this '''keyword&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;| Within a '''constructor''', '''this''' is a reference to the current '''object'''. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
We can refer any member of the current '''object''' within a''' constructor''' using '''this'''.&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;
&lt;br /&gt;
&lt;br /&gt;
Using '''this''' with '''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;| '''this '''keyword helps us to avoid name conflicts.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
We can see such an example here.&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''' Eclipse'''&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 '''Eclipse'''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Open the '''Student class''' we had created in the earlier tutorial.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Comment the '''default constructor '''and the '''constructor''' with 1 parameter.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Also comment the code for creating the first two '''objects'''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Now, notice the '''parameterized constructor.'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''the_roll_number''' and '''the_name '''are arguments passed in the constructor.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''roll_number''' and '''name '''are the instance variables.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Now, let me change the arguments to '''roll_number''' and '''name''' itself.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
So inside the '''constructor''' we have:&lt;br /&gt;
&lt;br /&gt;
'''roll_number '''equal to''' roll_number''' and '''name '''equal to''' name.'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''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;| Now, let us see the output.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
We get the output as follows:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 I am Parameterized Constructor&lt;br /&gt;
 0&lt;br /&gt;
 null&lt;br /&gt;
&lt;br /&gt;
We can see 2 warnings in the code.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''The assignment to variable roll_number has no effect.'''&lt;br /&gt;
&lt;br /&gt;
'''The assignment to variable name has no effect.'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This is because in the '''constructor roll_number and name''' are '''local variables'''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Local variables''' are '''variables''' accessible within a '''method''' or '''block'''. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Here, '''roll_number''' and '''name''' will be initialized to '''11''' and '''Raju'''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Once they come out of the '''constructor''', it is not accessible.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Then the only '''roll_number''' and '''name''' we know are the '''instance variables'''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
They have been initialized to '''0 '''and '''null '''already once the '''object''' is created.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
So we got the output as '''0 '''and '''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;| Type this.roll_number=roll_number&lt;br /&gt;
&lt;br /&gt;
this.name=name&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 make a small change inside the constructor.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Type '''this '''''dot '''''roll_number equal to roll_number'''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Next line type''' this '''''dot '''''name equal to name'''.&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&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 I am Parameterized Constructor&lt;br /&gt;
 11&lt;br /&gt;
 Raju&lt;br /&gt;
&lt;br /&gt;
This is because '''this '''''dot '''''roll_number '''and '''this '''''dot '''''name''' refers to the '''instance variables''' '''roll_number''' and '''name.'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''roll_number '''and '''name '''refers to the arguments passed in the method.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
To avoid confliction between '''local''' and '''instance''' variables we use '''this '''keyword.&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;
&lt;br /&gt;
Using '''this''' for chaining of constructors&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 use '''this '''keyword inside a '''constructor''' to call another one. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The '''constructors''' must be in the same '''class.''' &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This is called '''explicit constructor invocation'''.&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;
Point to''' Student 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 come back to the''' Student '''class which we created.&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;| Remove the comments.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Comment the part to assign the '''instance variables in the first two constructors.'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Comment the part which creates the''' '''second and third '''objects.'''&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''' default constructor.'''&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 first come to the first constructor with no parameters.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
After the curly brackets type '''this''' within brackets '''11''' ''semicolon''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Press '''Enter'''.&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 '''constructor''' with 1 argument.&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;| Inside the second '''constructor''' type '''this''' within brackets '''11''' ''comma'' '''Raju''' ''semicolon''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Press '''Enter'''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''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 &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 '''I am Parameterized Constructor'''&lt;br /&gt;
 '''I am a constructor with a single parameter'''&lt;br /&gt;
 '''I am Default Constructor'''&lt;br /&gt;
&lt;br /&gt;
'''11'''&lt;br /&gt;
&lt;br /&gt;
'''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 each''' constructor '''as you explain&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, I will explain the output.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
When the object is created, the respective constructor gets called.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The '''constructor''' here is the '''no argument constructor'''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The control comes to the first line in the '''constructor'''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
It encounters the '''this '''''within brackets '''''11''' statement.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Hence it calls the constructor that accepts 1 integer argument.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Then the control comes to '''this '''''within brackets''''' 11 '''''comma '''''Raju.'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Hence it calls the constructor that accepts 1 '''integer''' and 1 '''String''' argument.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
So this '''constructor''' is executed and we get the output as '''I am Parameterized Constructor'''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The instance variables are initialized here to '''11''' and '''Raju.'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Now, the control goes back to the calling '''constructor'''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
So the second''' constructor '''is executed.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
We get the output as''' I am constructor with a single parameter.'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Then, the control goes to the first constructor and executes it.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
So we get output as''' I am default constructor.'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Then '''studentDetail method''' is executed.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
So, we get '''11 '''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;| Hover the mouse over the error symbol.&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 make a small change.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Make the '''this''' statement the last one in the constructor.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
We get compiler error.&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;
We get the error as:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Constructor''' call must be the first statement in the '''constructor'''.&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;| So we must make it the first line of the '''constructor.'''&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;| Let us make it the first line of the '''constructor.'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
We can see that the error has gone.&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;
&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;
To use''' this''' keyword with''' fields.'''&lt;br /&gt;
&lt;br /&gt;
To use''' this''' keyword for chaining '''constructors'''&lt;br /&gt;
&lt;br /&gt;
How '''this '''keyword should be used within a''' constructor.'''&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 7&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, in the '''Employee class''' created earlier:&lt;br /&gt;
&lt;br /&gt;
* Create a '''constructor''' with two parameters&lt;br /&gt;
* Use''' this '''keyword to initialize the''' instance variables .'''&lt;br /&gt;
* Also create a '''constructor''' with 1 and no parameters.&lt;br /&gt;
* Try chaining the '''constructors '''using '''this''' as explained in the tutorial.&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;
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>