MISY225 Chapter Notes - Chapter 8: Precondition, Unified Modeling Language, Postcondition
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.