<?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%2FParameterized-constructors%2FEnglish</id>
		<title>Java/C2/Parameterized-constructors/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%2FParameterized-constructors%2FEnglish"/>
		<link rel="alternate" type="text/html" href="https://script.spoken-tutorial.org/index.php?title=Java/C2/Parameterized-constructors/English&amp;action=history"/>
		<updated>2026-04-09T01:51:56Z</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/Parameterized-constructors/English&amp;diff=107&amp;oldid=prev</id>
		<title>Chandrika: Created page with ''''Title of script''': parameterized constructor in java  '''Author: '''Prathamesh''' '''Salunke  '''Keywords: '''video''' '''tutorial,''' '''constructor,''' '''parameterized    …'</title>
		<link rel="alternate" type="text/html" href="https://script.spoken-tutorial.org/index.php?title=Java/C2/Parameterized-constructors/English&amp;diff=107&amp;oldid=prev"/>
				<updated>2012-11-27T10:17:19Z</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;: parameterized constructor in java  &amp;#039;&amp;#039;&amp;#039;Author: &amp;#039;&amp;#039;&amp;#039;Prathamesh&amp;#039;&amp;#039;&amp;#039; &amp;#039;&amp;#039;&amp;#039;Salunke  &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;constructor,&amp;#039;&amp;#039;&amp;#039; &amp;#039;&amp;#039;&amp;#039;parameterized    …&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''': parameterized constructor in java&lt;br /&gt;
&lt;br /&gt;
'''Author: '''Prathamesh''' '''Salunke&lt;br /&gt;
&lt;br /&gt;
'''Keywords: '''video''' '''tutorial,''' '''constructor,''' '''parameterized&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 '''parameterized''' '''constructor''' 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 a '''parametrized''' '''constructor'''&lt;br /&gt;
&lt;br /&gt;
- To create a '''parameterized''' '''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 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;
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;
'''Parameterized''' '''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;| A '''constructor''' that have parameter is called a '''parameterized''' '''constructor'''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
It can have one or more than one parameter.&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 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;| Let us now create a '''parameterized constructor.'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
So in the eclipse, I have the''' Student.java '''file.&lt;br /&gt;
&lt;br /&gt;
We created this file in the previous tutorial.&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'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Replace''' 10 by 0'''&lt;br /&gt;
&lt;br /&gt;
Replace '''“Raman” by null'''&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 '''constructor''' we will give the variables their default value.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
So '''''roll_number '''is''' '''equal''' '''to''' zero''''' instead of '''''ten'''''.&lt;br /&gt;
&lt;br /&gt;
And '''''name''' is equal to '''null''''' instead of '''''Raman'''''. &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: '''&lt;br /&gt;
&lt;br /&gt;
'''System.out.println(“I am default constructor”);'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Point to the 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;| Then type '''''System '''dot''' out '''dot''' println I am default constructor.'''''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
So we have created a '''constructor''' with no parameters. &lt;br /&gt;
&lt;br /&gt;
In java, such constructor is also called '''default''' '''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;| '''Student(int the_roll_number)'''&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 create another '''constructor'''.&lt;br /&gt;
&lt;br /&gt;
So type '''''Student''' parentheses.''&lt;br /&gt;
&lt;br /&gt;
Inside ''parenthesis'' '''''int the_roll_number '''''comima''''' String the_name.'''''&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 '''Student'''&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 what we have done is declared a '''constructor''' with parameters.&lt;br /&gt;
&lt;br /&gt;
The name of the '''constructor''' '''Student''' that is the class name.&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_roll_number, String the_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;| Inside paranthesis we have given two parameters to the '''constructor'''.&lt;br /&gt;
&lt;br /&gt;
We can give any number of parameters.&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:'''&lt;br /&gt;
&lt;br /&gt;
'''System.out.println(“I am a parameterized 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;| Now inside curly brackets type&lt;br /&gt;
&lt;br /&gt;
'''''System '''dot''' out '''dot''' println I am a parameterized 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;| '''Type:'''&lt;br /&gt;
&lt;br /&gt;
'''roll_number=the_roll_number;'''&lt;br /&gt;
&lt;br /&gt;
'''name=the_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;| Then '''''roll_number''' is equal to '''the_roll_number'''.''&lt;br /&gt;
&lt;br /&gt;
And'' '''name''' is equal to '''the_name'''.''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
So we have created a '''parameterized''' '''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;| Highlight the parameters&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;| Information that we want to pass to the '''constructor''' is received by these variables.&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;
|-&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 '''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;| The '''default''' '''constructor''' is called first.&lt;br /&gt;
&lt;br /&gt;
It initializes the variables to their default value.&lt;br /&gt;
&lt;br /&gt;
Then the '''parameterizerd''' '''constructor''' is called.&lt;br /&gt;
&lt;br /&gt;
It initializes the variables to the values that are passed as the argument.&lt;br /&gt;
&lt;br /&gt;
That is 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;| Hightlight arguments&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 see how the '''parametrized''' '''constructor''' works.&lt;br /&gt;
&lt;br /&gt;
When we call the '''parameterized''' '''constructor''', we pass two variables to it.&lt;br /&gt;
&lt;br /&gt;
These are called arguments.&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 parameters&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;| '''''11''''' is copied into the parameter '''''the_roll_number'''''.&lt;br /&gt;
&lt;br /&gt;
'''''Raju''''' is copied into the parameter '''''the_name'''''.&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&lt;br /&gt;
&lt;br /&gt;
'''roll_number=the_roll_number;'''&lt;br /&gt;
&lt;br /&gt;
'''name=the_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;| The value of '''''the_roll_number''''' is assigned to '''''roll_number'''''.&lt;br /&gt;
&lt;br /&gt;
And the value of '''''the_name''''' is assigned to '''''name'''''.&lt;br /&gt;
&lt;br /&gt;
Hence we see the''''' ''output'' 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;| Delete “'''Raju'''”&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 see the common errors, when we call a '''parameterised''' '''constructor.'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Suppose we pass a single argument to the '''constructor'''.&lt;br /&gt;
&lt;br /&gt;
So remove '''''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;| Point to 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 see an error. It states that '''“The constructor Student(int) is undefined.”'''&lt;br /&gt;
&lt;br /&gt;
So the number of arguments must match the number of parameters.&lt;br /&gt;
&lt;br /&gt;
Here we can retype '''''Raju''''' to resolve the error.&lt;br /&gt;
&lt;br /&gt;
Alternatively, we can define another '''constructor''' with a single parameter.&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;| '''Student(int r_no)'''&lt;br /&gt;
&lt;br /&gt;
'''{'''&lt;br /&gt;
&lt;br /&gt;
'''System.out.println(“I am a constructor with a single parameter”);'''&lt;br /&gt;
&lt;br /&gt;
'''roll_number=r_no;'''&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;| Let us create another constructor.&lt;br /&gt;
&lt;br /&gt;
Type''''' Student '''within''' '''paranthesis''' int r number.'''''&lt;br /&gt;
&lt;br /&gt;
Inside''''' '''curly''' '''brackets,''' System '''dot''' out '''dot''' println'''''&lt;br /&gt;
&lt;br /&gt;
I am a '''constructor''' with a single parameter.&lt;br /&gt;
&lt;br /&gt;
Then '''''roll_number''''' ''is equalto''' r number'''''&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''' 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;| '''Save''' the file.&lt;br /&gt;
&lt;br /&gt;
We see the error is resolved as we define 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;| '''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;| '''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;| On the console we see the roll number is assigned the value '''''11.'''''&lt;br /&gt;
&lt;br /&gt;
While name is '''''null''''' since the '''constructor''' takes only one argument.&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;| '''Student stu3=new Student(11,”Raju”);'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''stu3.studentDetail();'''&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 now call back our constructor with two parameters.&lt;br /&gt;
&lt;br /&gt;
So type''''' Student stu3 '''is''' '''equal''' '''to''' new Student.'''''&lt;br /&gt;
&lt;br /&gt;
''Within''' '''paranthesis''' 11 '''comma''' Raju.'''''&lt;br /&gt;
&lt;br /&gt;
'''''Stu3 '''dot''' studentDetails'''''&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;| '''Student(“11”,”Raju”);'''&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;| Suppose here we pass '''''11''''' as '''String,''' so add ''double'' ''quotes.''&lt;br /&gt;
&lt;br /&gt;
We get an error.&lt;br /&gt;
&lt;br /&gt;
It states that '''“The constructor Student String String is undefined.”'''&lt;br /&gt;
&lt;br /&gt;
So even the datatype of the argument must match with that of parameter.&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;| Remove '''“”.'''&lt;br /&gt;
&lt;br /&gt;
'''Save''' 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;| Remove the ''quotes'' and '''Save''' the file.&lt;br /&gt;
&lt;br /&gt;
Now we do not see an error.&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;| '''Run''' the program&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;| '''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 three '''constructors.'''&lt;br /&gt;
&lt;br /&gt;
The '''default''' '''constructor.'''&lt;br /&gt;
&lt;br /&gt;
'''Constructor''' with one parameter.&lt;br /&gt;
&lt;br /&gt;
'''Constructor''' with two parameters.&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: '''Why''' '''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;| The variables in a class must be initialized each time an instance is created.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
It can be tedious to initialize all the variables. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Java allows objects to initialize themselves when they are created.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This is performed through the use of a '''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;| 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 create '''parameterized''' '''constructor.'''&lt;br /&gt;
&lt;br /&gt;
Functionality of '''parameterized''' '''constructor.'''&lt;br /&gt;
&lt;br /&gt;
The advantage of using '''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, create a class '''Employee'''.&lt;br /&gt;
&lt;br /&gt;
Create '''constructors''' with different number of parameters.&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 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 Prathamesh Salunke 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>