Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class GenericClass<T>
- {
- var obj:T;
- public function new(obj:T)
- {
- this.obj = obj;
- }
- public function toString():String
- {
- return Std.string(obj);
- }
- }
- class GenericSubclass<T> extends GenericClass<T>
- {
- public function new(obj:T)
- {
- super(obj);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement