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

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
主站蜘蛛池模板: 炉霍县| 紫阳县| 扎赉特旗| 东乡县| 太保市| 永宁县| 绥江县| 长丰县| 九龙县| 清苑县| 茌平县| 旺苍县| 尖扎县| 四平市| 河曲县| 太原市| 孟村| 甘肃省| 安国市| 白银市| 吉林省| 延津县| 青岛市| 哈尔滨市| 手游| 渭源县| 胶州市| 昌平区| 白玉县| 民和| 深圳市| 齐齐哈尔市| 通城县| 太湖县| 乐都县| 北宁市| 舒兰市| 长沙市| 宁强县| 昌邑市| 台东市|