官术网_书友最值得收藏!

Chapter 9. Object-Oriented Programming

In this chapter we will discover that in Java, classes are fundamental to just about everything. We will begin to understand why the software engineers at Sun Microsystems back in the early 1990's made Java the way they did.

We have already talked about reusing other people's code, specifically the Android API, but in this chapter, we will really get to grips with how this works and learn about object-oriented programming (OOP) and how to use it.

In short, we will cover the following topics:

  • What OOP is including encapsulation, inheritance, and polymorphism
  • Writing and using our first, very own class
  • Encapsulation in depth and how it helps us
  • Inheritance in depth and how to take full advantage of it
  • Polymorphism explained in greater detail
  • Static classes and how we have been using them already
  • Abstract classes and interfaces
主站蜘蛛池模板: 新营市| 精河县| 康马县| 绵竹市| 雅江县| 商城县| 英吉沙县| 肃北| 祥云县| 高青县| 杨浦区| 曲靖市| 汕尾市| 仁化县| 吴江市| 霍州市| 宁河县| 嵩明县| 辽阳县| 新郑市| 乳山市| 松阳县| 潼关县| 崇信县| 普洱| 灌阳县| 新宾| 石门县| 海伦市| 溧阳市| 惠东县| 响水县| 宣威市| 工布江达县| 大方县| 兴宁市| 泾川县| 双柏县| 洪湖市| 仁布县| 衡南县|