Classes and Objects

Java classes and objects: classes as descriptions, creating objects with new, constructors, this, and static against instance members.

  • 9 cards
  • 6 questions
  • About 9 min
  • Beginner to Intermediate
Share

Classes and objects, the first topic about the shape of Java rather than its syntax. A class describes what a kind of thing holds and can do; an object is one of those things, created with new, with its own values. It covers the difference between the two, several objects from one class, constructors and how to offer more than one, the constructor the compiler stops supplying, what this refers to, and static against instance members. It leaves out nested and anonymous classes.

Contents

9 cardsnot started