Skip to content

Instantly share code, notes, and snippets.

@illuzor illuzor/Classes.as
Created Aug 16, 2015

Embed
What would you like to do?
package com.illuzor.antbuilddemo.interfaces {
public interface IGenerator {
function getText():String;
}
}
package com.illuzor.antbuilddemo.generators {
import com.illuzor.antbuilddemo.interfaces.IGenerator;
public class AndroidTextGenerator implements IGenerator {
/* INTERFACE com.illuzor.antbuilddemo.interfaces.IGenerator */
public function getText():String {
return "Text for Android";
}
}
}
package com.illuzor.antbuilddemo.generators {
import com.illuzor.antbuilddemo.interfaces.IGenerator;
public class FlashPlayerTextGenerator implements IGenerator {
/* INTERFACE com.illuzor.antbuilddemo.interfaces.IGenerator */
public function getText():String {
return "Text for Flash Player";
}
}
}
package com.illuzor.antbuilddemo.generators {
import com.illuzor.antbuilddemo.interfaces.IGenerator;
public class IOSTextGenerator implements IGenerator {
/* INTERFACE com.illuzor.antbuilddemo.interfaces.IGenerator */
public function getText():String {
return "Text for IOS";
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.