Chapter 8. Object-Oriented Programming
In this chapter, we will discover that in Java, classes are fundamental to everything. We have already talked about reusing other people's code, specifically the Android code, but in this chapter, we will really get to grips with how this works and learn about Object-Oriented Programming as well as how to use it. Here is what is coming up in this chapter.
- Introduction to Object-Oriented Programming including encapsulation, inheritance, and polymorphism
- Write and use our first, very own class
- An explanation about encapsulation and how it is our friend
- Inheritance- a first look and how to take advantage
- An introduction to polymorphism
- Static classes
- Abstract classes and interfaces
- Start the next project- Pong
Let's ...
Get Learning Java by Building Android Games - Second Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.