Any type of thing that can be described by the same kind of data, and that perform similar actions, can be modeled as a class
What does an object represent?
Anything describable by a noun can be modeled as an object
Remember...
Objects are individual instances of a Class of objects
Classes are the templates for how objects behave
Test your knowledge
[qwiz random="true" style=ā€¯border: 2px solid black; background: white;"]
[q] What is the output of the program?
[c] 0
[c*] Compiler error
[c] Runtime error
[q] What is the output of the program?
[c*] 0
[c] Compiler error
[c] Runtime error
[q] What will be the outcome of the program?
[c*] 1, 2, 3
[c] 2, 2, 3
[c] a, 2, 3
[q] What will be the outcome of the program?
[c] 30
[c] 20
[c*] 10
[q] What will be the outcome of the program?
[c] B
[c*] Z
[c] A
[q] What will be the outcome of the program?
[c*] 23
[c] 11
[c] i
[/qwiz]