A Summary of Classes in Java.
Title: A Summary of Classes in Java.
Category: /Science & Technology/Computers and Cybernetics
Details: Words: 616 | Pages: 2 (approximately 235 words/page)
A Summary of Classes in Java.
Category: /Science & Technology/Computers and Cybernetics
Details: Words: 616 | Pages: 2 (approximately 235 words/page)
My Quick Summary of Classes
1.A class is an abstract concept.
a.Other Descriptions
i.A class is a blueprint.
ii.A class represents a category of items.
b.Examples
i.A Radio is a category of items.
ii.A Student is a category of items.
iii.A Ball is a category of items.
2.An object is the embodiment of a class.
a.Other Descriptions
i.An object is an instance of a class.
ii.
showed first 75 words of 616 total
You are viewing only a small portion of the paper.
Please login or register to access the full copy.
Please login or register to access the full copy.
showed last 75 words of 616 total
use of the keyword return.
*Mutator methods change the state of the object and modify instance data.
*Notice that the instance data myColor is changed.
*This mutator method does not return a value. Notice the use of the keyword void and notice the lack of the keyword return.
*This mutator method needs information in order to change the object. The needed information is received by using a parameter. Notice the use of the parameter color.