I think I have declared the variable person and with it I have five variables.
But no.
Why???
package com.codegym.task.task02.task0202;
/*
Where does a Person come from?
*/
public class Solution {
public static void main(String[] args) {
//write your code here
Person person = new Person("Paco",48,72,2000);
}
public static class Person {
//write your code here
String name;
int age;
int weight;
int money;
public Person (String n,int a,int w,int m){
name=n;
age=a;
weight=w;
money=m;
}
}
}