TypeSafe Journey Using Scala
  • Table Of Content
  • About This Book
  • Copyleft Notice
  • Thanks
  • My Journey
  • Introduction
  • Phase I: Basics
    • Chapter 1: What are the types?
    • Chapter 2: Types Vs Classes and Subtyping Vs Inheritance
    • Chapter 3: Type Disciplines
    • Chapter 4: Type Inference
    • Chapter 5: Scala Types Hierarchy
    • Chapter 6: Parameterized Types
    • Chapter 7: Type Erasure
    • Chapter 8: Type Classes and Ad-hoc Polymorphism
    • Chapter 9: Type Constraints
    • Chapter 10: Variance
      • Non-Variance
      • Co-Variance
      • Contra-Varaince
      • Conclusion
  • Phase II: Advance
    • Chapter 11: What are Kinds in Scala?
    • Chapter 12: Higher Kinded Types
Powered by GitBook
On this page
  1. Phase I: Basics
  2. Chapter 10: Variance

Conclusion

As per our findings, the conclusion of Co-Variance and Contra-Variance is like these two concepts are based on the following techniques:

  • Inheritance

  • Polymorphism

  • Method Overriding

  • Liskov Substitution Principle (LSP)

  • Think like a Compiler

PreviousContra-VarainceNextPhase II: Advance

Last updated 5 years ago