/** * Kun testklasse * * @author 1/2geir * @version 001 */ public class Test { public Student student1; public Student student2; public Adresse adresse1; public Adresse adresse2; /** * Constructor for objects of class Test */ public Test() { student1 = new Student("Kurt", "Oddekalv", "+4797654433", 23456); student2 = new Student ("Bill", "Clinton", "+0044234523423", 34544); adresse1 = new Adresse ("Strandvegen", 45, "B", "5230", "Bergen"); adresse2 = new Adresse ("Gule huset", 33, "Z", "5421", "Ottawa"); } /** * An example of a method - replace this comment with your own * * @param y a sample parameter for a method * @return the sum of x and y */ public void kjor() { student1.setAdresse(adresse1); student2.setAdresse(adresse2); student1.skrivStudent(); student2.adresse.skrivAdresse(); } }