Commit 24013d5b authored by Børge Haugset's avatar Børge Haugset
Browse files

Føer forelesning

parent f6ad9282
......@@ -2,7 +2,7 @@ package uke12.boss;
public class Boss extends Worker{
Secretary secretary = new Secretary();
Worker secretary = new Secretary();
@Override
public String work() {
......
package uke12.boss;
package uke12.boss.uteninterface;
public class Boss implements Worker {
public class Boss extends Worker {
Worker secretary = new Secretary();
......
package uke12.boss;
package uke12.boss.uteninterface;
public class Secretary implements Worker {
public class Secretary extends Worker {
@Override
public String work() {
......
package uke12.boss.uteninterface;
public class Worker {
public String work() {
return "standard jobb";
}
}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment