class
Car
blueprint
Car.totalBuilt
0
fields · one copy per object
color
brand
speed
= 0
methods · shared by every object
accelerate
(amount)
brake
()
describe
()
constructor — build a new object
Tesla
Toyota
BMW
Honda
Audi
+ Build a car
new Car()
Objects
0 live
← stamped from one class
console
Reset all
▸
One
class
on the left, many
objects
on the right. Accelerate one car — only
its
speed changes. That's independent object state.