Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package com.coolcsn;
- public class Executor {
- private Introducable entity;
- public Introducable getStudent() {
- return entity;
- }
- public void setStudent(Introducable entity) {
- this.entity = entity;
- }
- public Executor(Introducable entity) {
- this.entity = entity;
- }
- public void makeItSpeak() {
- System.out.println("---------------Hahaha I will make you speak!!!-------------------");
- entity.introduceYourSelf();
- System.out.println("---------------Hahaha I told you!!!-------------------");
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement