Upgrade to Pro — share decks privately, control downloads, hide ads and more …

共変戻り値型って知ってますか?

 共変戻り値型って知ってますか?

JJUGビール片手にLT&納涼会でLT (2014/08/22)の発表分

※元々はSlideShareで公開していた資料です

RyotaMurohoshi

August 22, 2014
Tweet

More Decks by RyotaMurohoshi

Other Decks in Technology

Transcript

  1. public class Shape { /*ུ*/ } public class Circle extends

    Shape { /*ུ*/ } public class ShapeBuilder { /*ུ*/ public Shape Create() { /*ུ*/ } //<-໭Γ஋ܕ Shape! } public class CircleBuilder extends ShapeBuilder { @Override public Circle Create() { /*ུ*/ } //<-໭Γ஋ܕ Circle! }
  2. public class Shape { /*ུ*/ } public class Circle extends

    Shape { /*ུ*/ } public class ShapeBuilder { /*ུ*/ public Shape Create() { /*ུ*/ } //<-໭Γ஋ܕ Shape! } public class CircleBuilder extends ShapeBuilder { @Override public Circle Create() { /*ུ*/ } //<-໭Γ஋ܕ Circle! }
  3. C#

  4. ͓લͩΕΑ • ໊લ : ࣨ੕྄ଠ • ࢓ࣄ : UnityήʔϜ։ൃ(C#)ɺAndroidΞϓϦ։ൃ(Java) •

    Twitter : @RyotaMurohoshi • ౤ߘઌ : http://qiita.com/RyotaMurohoshi • ڵຯ : Kotlin, Groovy, C#, Unity, SonyͷWearable Device ࠷ۙɺ͓࢓ࣄ͸΋ͬͺΒC#ͰUnity