CC3 MIDTERMS Flashcards
-Mechanism that enables one class to inherit behavior and attributes of another class
-Apply knowledge of general category to move specific objects
Inheritance
Consists of many types of diagrams
Unified Modeling Language (UML)
overview of a class
Class diagram
Used as a basis for inheritance
Base class also called Super class and Parent class
Inherits from base class and Always “is a” case or example of more general base class
Derived class
Also called:
Subclass
Child class
Achieve inheritance in Java
Keyword extends
Always refers to superclass
Keyword super
Concept of keeping data private
Says can be altered only by methods you choose and only in ways that you can control
Information hiding
Instances hold single character value
Defines methods that can manipulate or inspect single character data
Character
Class for working with fixed string data
Unchanging data composed of multiple characters
String
Class for storing and manipulating channels says composed of multiple characters
String builder and String buffer
Sequence of characters enclosed within double quotation marks
Unnamed object, or anonymous object of string class
Literal string
Named object of string class
String variable
Defined in Java. Lang. String
Automatically imported into every program
Class string
Objects that cannot be changed
Immutable
Evaluates contents of two string objects to determine if they are equivalent
Equals()
Ignores case when determining if two strings equivalent
EqualsIgnoreCase
Compares two strings and returns
CompareTo()
Only if two strings refer to same value
Zero
If calling object “less than” argument
Negative number
If calling object “more than” argument
Positive number