JAVA PROGRAM

Java

Video is ready, Click Here to View ×


RHODEN SANTOS
IT201P

TP
COPRO2

—— PROGRAM CODE ——

class Person{

private String name;
private String address;

public Person(String name, String address){
this.name = name;
this.address = address;
}
public String getName(){
return name;
}
public String getAddress(){
return address;
}
public void setAddress(String address){
address = address;
}
public String toString(){
return (“n” + “Name: ” + name + “n” + “Address: ” + address);
}
}

//

class Student…

Leave a Reply

Your email address will not be published. Required fields are marked *