CSCI 1111 Chapter Notes - Chapter 7: Mutator Method

32 views3 pages
31 Dec 2016
School
Course

Document Summary

7. 1: objects introduction: an object consists of some internal data items plus operations that can preformed on that data. An example would be an object called runnerinfo. The runnerinfo object supports operations like setting distance, setting time, and computing speed. 7. 2: classes introduction: the class construct defines a new type that can group data and methods to form an object, to use a class, the programmer defined and initialized a variable of a class type in main() Example: you can also create a second object, runner2 of the same class type (runnerinfo: a member method is a method that is part of (a member of ) a class. The member methods are (typically) listed after the public access modifier in the class definition: the class user then can call class member methods on the object using the . A call to an object"s member method operates on that object: creating an object consists of two steps.

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