Skip to Content
Learning Java by Building Android Games - Third Edition
book

Learning Java by Building Android Games - Third Edition

by John Horton
March 2021
Beginner to intermediate
686 pages
13h 6m
English
Packt Publishing
Content preview from Learning Java by Building Android Games - Third Edition

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 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:

  • An introduction to object-oriented programming, including encapsulation, inheritance, and polymorphism
  • Writing and using our first, very own class
  • An explanation of 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
  • Starting the next game ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Learning Java by Building Android Games - Second Edition

Learning Java by Building Android Games - Second Edition

John Horton
Programming Android with Kotlin

Programming Android with Kotlin

Pierre-Olivier Laurence, Amanda Hinchman-Dominguez, Mike Dunn, G. Blake Meike

Publisher Resources

ISBN: 9781800565869Supplemental Content