Professional Documents
Culture Documents
Cs 1301 - Computer Science I: Storing The State - Data Members Constructing An Object - Constructors
Cs 1301 - Computer Science I: Storing The State - Data Members Constructing An Object - Constructors
◦ Object
◦ State – characteristics, attributes
◦ Behavior – what you can tell it to do, what you can
ask it
◦ Example
◦ Student
◦ BankAccount
Object vs. class
Object Class
Object is the creation
of a class within a program to be used.
this.turtle1.stepForward();
this.turtle2.lowerTail();
Next class
◦ Methods and refactoring
◦ Review