I CSI 201 Chapter Notes - Chapter 6: Function Overloading

50 views4 pages

Document Summary

Chapter 6: an object exists in memory, and performs a specific task, objects have two general capabilities: The pieces of data stored in an object are known as fields. The operations that an object can perform are. Printwriter objects, for writing data to files: when a program needs the services of a particular type of object, it creates that object in memory, and then calls that object"s methods as necessary. A class is code that describes a particular type of object. It specifies the data that an object can hold (the object"s fields), and the actions that an object can perform (the object"s methods). Writing a class, step by step: a rectangle object will have the following fields, the rectangle class will also have the following methods: The length field will hold the rectangle"s length. The width field will hold the rectangle"s width. The setlength method will store a value in an object"s length.

Get access

Grade+20% off
$8 USD/m$10 USD/m
Billed $96 USD annually
Grade+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
40 Verified Answers
Class+
$8 USD/m
Billed $96 USD annually
Class+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
30 Verified Answers

Related Documents

Related Questions