Difference between revisions of "Java/C2/Creating-object/English"
(Created page with ''''Title of script''': Creating object '''Author: arya ''' '''Keywords: video tutorial''' {| style="border-spacing:0;" ! <center>Visual Clue</center> ! <center>Narration</ce…') |
PoojaMoolya (Talk | contribs) |
||
Line 8: | Line 8: | ||
{| style="border-spacing:0;" | {| style="border-spacing:0;" | ||
− | ! <center>Visual | + | ! <center>Visual Cue</center> |
! <center>Narration</center> | ! <center>Narration</center> | ||
Latest revision as of 12:01, 17 June 2014
Title of script: Creating object
Author: arya
Keywords: video tutorial
|
|
---|---|
Slide 1 | Welcome to the spoken tutorial on Creating objects. |
Slide 2 | In this tutorial we will learn about:
|
Slide 3 | Here, we are using :
|
Slide 4 | To follow this tutorial you must know how to create a simple class using Eclipse.
spoken hyphen tutorial dot org. |
Slide 5 | We know that variables and methods together form the members of a class.
|
Slide 6 | Now let us see what an object is.
|
Slide 7 | Now let us learn about reference variables.
|
Switch to Eclipse
public class TestStudent { public static void main(String args[]){ Student stud1 = new Student(); } Highlight each term and explain |
Let us go back to the Student class which we have already created in the earlier tutorial.
|
Narrate as you type
|
Now, let us see what stud1 contains.
|
Highlight the output. | We get the output as follows.
|
Open TestStudent.java
Type Student stud2=new Student(); |
Now, I will create one more object of the Student class.
|
Type System.out.println(“stud2 contains “ + stud2); | Now type System dot out dot println within brackets and double quotes stud2 contains plus stud2 and then semicolon.
|
Highlight the output. | We can see that here stud1 and stud2 refers to two different objects.
|
Come back to TestStudent.java.
Type Student stud2=stud1;
|
Now, we can make a change here.
|
Show the output. | We can see that here both stud1 and stud2 refers to the same object.
|
Slide 8 | So in this tutorial we learnt about
|
Slide 9 | For self assessment
|
Slide 10 | Watch the video available at http://spoken-tutorial.org/What_is_a_Spoken_Tutorial
|
Slide 11 | The Spoken Tutorial Project Team
|
Slide 12
Acknowledgment slide |
Spoken Tutorial Project is a part of the Talk to a Teacher project
|
We come to the end of this tutorial.
This is Arya Ratish from IIT Bombay signing off. Thanks for joining us. | |
Watch the video available at http://spoken-tutorial.org/What_is_a_Spoken_Tutorial
| |
The Spoken Tutorial Project Team
| |
Spoken Tutorial Project is a part of the Talk to a Teacher project
| |
We come to the end of this tutorial.
Thanks for joining us. This is Arya Ratish signing off. Good bye and Jai Hind. | |