Where does a Person come from?

  • 2
  • Locked
  • Exercise
In Java, people come from the same place that other classes come from: from the programmer's head. It is important for the creator of a class to think through what is important for the class and what is not. If he or she does, then the class will make sense and be useful. Let's begin. Let's create a Person class that allows our Person to have a name, age, weight, and... money. And then we'll create an object.
You can't complete this task, because you're not signed in.
Comments(26)
  • Popular
  • New
  • Old
You must be signed in to leave a comment
BhavaniLevel 2 , Guntur
8 September, 01:11
how to declare a String variable
DanielLevel 2 , Zagreb
8 September, 20:41
To declare a String variable, you have to tell your computer what type of data you're declaring (in this case String), assign a name to that variable and give it a value. Remember, valuation of a String isn't the same as valuating an int.
MurthyLevel 2 , Los Angeles
28 August, 16:03
I am getting "Be sure that the variable is called person." I can't understand here. any hint pls?
Kedar HargudeLevel 8 , Mumbai
20 August, 12:58
What does create a Person object and assign a reference to it mean? Not getting what's going on
Matt SelingerLevel 2 , Saint Louis
23 July, 16:05
I was a little confused by the last instruction, '...assign a reference to it to the variable person'. I thought it was implying parameters but really it just wanted the object created. The object 'person' is a variable, is that correct?
Bhagyadhar SahooLevel 2 , Mumbai
17 July, 02:18
i can't understand assign a reference to it to the variable .plz help
Raunak AdhikariLevel 2 , Gurgaon
25 June, 16:19
why does it keep coming be sure the variable is declared
vishalLevel 2 , Jamshedpur
16 June, 15:14
/* Comment has been deleted */
RomanLevel 41
18 June, 06:42
Posting the solution in the comments is prohibited.
Pavan YeolaLevel 2 , Mumbai
12 June, 03:25
error, use constructor new person() without parameter what does that mean
PoonamLevel 4
7 June, 10:52
whats the remaining part of code
Supriya MishraLevel 10 , Bangalore
14 March, 07:59
What is javadoc comment ? why and when it is ideally supposed to be write?
Duck MacLevel 3
3 June, 23:40
Do not worry about code anylasis.