MISY225 Chapter Notes - Chapter 8: Precondition, Unified Modeling Language, Postcondition

32 views5 pages

Document Summary

Learn about private, protected, public, and static members of a class. Become aware of accessor methods and mutator methods. Learn how to avoid bugs by documenting a class design. Learn how to do a walk-through of a class design. Java does not provide all classes you will need, so it permits you to design and implement your own classes. Combining data and operations on the data is call encapsulation. Encapsulation is the first principle of ood: public final class string. //code to convert all characters of a string to lowercase. This value must be stored in the new class circle. Must provide basic operations, such as circumference and radius. Class: a collection of a specific number of components, called the members of the class: general syntax for defining a class: A class can only extend (subclass) one parent: a comma-separated list of interfaces implemented by the class, if any, preceded by the keyword implements.

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