class Person {
private String name;
private Address address; // Address object stored privately
public Person(String name, Address address) {
this.name = name;
this.address = new address; // indirect assignment of the object I.e copy
}
public String getName() { //getter method for the name
return name;
}
public Address getAddress() { //getter method for the Address
return address;
}
}
#Friday #quiz
WHAT'S WRONG WITH THE ABOVE CODE
Anonymous Quiz
27%
Logical Error
14%
Memory leak
18%
CompileTime error
22%
Privacy leak
18%
None
This media is not supported in your browser
VIEW IN TELEGRAM
Interesting topic about Javascript 🤔
This media is not supported in your browser
VIEW IN TELEGRAM
☀️ GOOD MORNING Y'ALL
Short Demo video of the ai video generated via Qwen_ai