Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- fun myMethod(thing: T){}
- class MyClass : IMyInterface{}
- interface IMyInterface <T>{
- fun myMethod(thing: T){}
- }
- class MyClass: IMyInterface<MyClass>{
- fun myMethod(thing: MyClass){} // <<<-- the type is set because I explicitly set it above
- }
- interface IMyInterface{
- fun myMethod(thing: T){}
- }
- class MyClass: IMyInterface{
- fun myMethod(thing: MyClass){} // <<<-- the type is set because I explicitly set it above
- }
Add Comment
Please, Sign In to add comment