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

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
主站蜘蛛池模板: 行唐县| 义乌市| 郸城县| 胶南市| 常山县| 金山区| 泽州县| 彰化县| 炉霍县| 江山市| 方城县| 普定县| 正宁县| 杨浦区| 马边| 通州市| 塔河县| 股票| 包头市| 丰台区| 饶阳县| 教育| 金坛市| 普陀区| 尼勒克县| 澄江县| 铜鼓县| 吴桥县| 太康县| 白沙| 沙坪坝区| 扎兰屯市| 昆明市| 仪征市| 泌阳县| 乐至县| 古交市| 离岛区| 龙井市| 德令哈市| 保亭|