CS 0007 Chapter Notes - Chapter 6: Default Constructor, String Literal, Local Variable

72 views12 pages
School
Course
Professor

Document Summary

Chapter 6: a first look at classes: section 1 objects and classes, concept: an object is a software component that exists in memory and serves a specific purpose in a program. An object is created a class that contains code describing the object: most programming languages in use today are object-oriented, with an object-oriented language, you create programs that are made of objects. In programming, however, an object is not a physical device; it"s a software component that exists in the computer"s memory and performs a specific task. In software, an object has two general capabilities: 1. An object can store data: fields: data stored in an object are commonly called this, 2. An object can perform operations: methods: the operations that an object can perform, examples of objects you have previously learned: If you need to read input from the keyboard, or from a file, you can use a scanner object.

Get access

Grade+
$40 USD/m
Billed monthly
Grade+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
10 Verified Answers
Class+
$30 USD/m
Billed monthly
Class+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
7 Verified Answers

Related Documents