Chapt6 2

Stephb

30 cards   |   Total Attempts: 182
  

Cards In This Set

Front Back
Data in an object are known as
Fields
Procedures in an object are known as
Methods
An object created from a class is called an __________ of a class
Instance
Class ___________ normally have methods that perform useful operations on their data
Objects
________ variables can only store data and have no methods
Primative
Each ______ of the class string contains different data
Instance the instances aer all share the same design
Each instance has all of the atributes and methods that were defined in the _______ class
String class
Rectangle object will have the following fields
Length width
Rectangle box = new Rectangle (); the box variable holds the ______ of the recangle object
Adress
Methods that retrive the data of the fields are called
Accessors
Methods that modify the data of the fields are called
Mutators setlength setwidth
Each field that the programmer wishes to be viewed by other classes needs an ________
Accessor getlength getwidth
Each feild that the programer wishes to be modifed by other classes needs a
Mutator
________ fields and ______ methods require an object to be created in order to be used
Instance instance
Classes can have special methods called
Constructors