What does the following code snippet illustrate about class instantiation?
public class Person {
String name;
int age;
Person(String name, int age) {
this.name = name;
this.age = age;
}
}
What does the following code snippet illustrate about class instantiation?
public class Person {
String name;
int age;
Person(String name, int age) {
this.name = name;
this.age = age;
}
}