Skip to content

Classes and Objects

Ronald Lencevičius edited this page Jan 12, 2018 · 8 revisions

Overview

Up to this point, we've built programs with only 1 class. This class would contain some sort of methods that perform some tasks. Realistically, your program would be composed of many classes that specialize on specific things. Think of this as a car. For a car to work you need an engine, a transmission, some suspension, some wheels, etc, etc... However, all of these things (classes) perform different functions (methods). A transmission won't be able to perform the function of suspension and vice versa.

We'll get more into this through the section.

New Concepts

Classes vs Objects

Methods/Encapsulation (Constructors, getters/setters, methods)

Creating Objects

Reminders of static

Reminders of scope

Inheritance

Interfaces

Activity

Clone this wiki locally