Objects


#1

I really don't know what the problem is. Could you please help me?

TIA
Dhanya


#2

You have to create an object of your person class.
Since your person class requires a name and an age we will give it both parameters.
Object syntax:

var sally = new Person("Sally Bowles", 39);

That makes a variable named sally hold an object of your person class.


#3

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.