Please enable JavaScript.
Coggle requires JavaScript to display documents.
COMP90041 - Coggle Diagram
COMP90041
Inheritance and Polymorphism
:warning: 考点:UML
UML diagram
重要程度: :star::star::star:
难度: :smiley:
Packages & javadoc
import
重要程度: :star:
难度: :smiley:
package
重要程度: :star:
难度: :smiley:
Package name & direction
重要程度: :star:
难度: :smiley::smiley:
Default package
重要程度: :star:
难度: :smiley:
javadoc
重要程度: :star::star:
难度: :smiley:
易错点:弄错格式
:warning: 考点:Inheritance
Derived classes
重要程度: :star::star::star:
难度: :smiley::smiley::smiley:
难点:在derived class中调用parent class的private method和private instance variable
Overriding
重要程度: :star::star::star:
难度: :smiley::smiley::smiley:
难点:程序调用overriding method的顺序
Covariant return type
重要程度: :star:
难度: :smiley::smiley:
final modifier
重要程度: :star::star:
难度: :smiley::smiley:
super constructor
重要程度: :star::star::star:
难度: :smiley::smiley::smiley:
this constructor
重要程度: :star::star::star:
难度: :smiley::smiley:
Access
Protected & package access
重要程度: :star::star:
难度: :smiley:
易错点:protected和package的access范围易混淆
Class object
重要程度: :star::star::star:
难度: :smiley::smiley:
instanceof operator
重要程度: :star:
难度: :smiley::smiley:
:warning: 考点:Polymorphism
Late binding
重要程度: :star::star::star:
难度: :smiley::smiley::smiley:
难点:overriding method的调用顺序规则
Upcasting & downcasting
重要程度: :star::star:
难度: :smiley: ::smiley:
:warning: 考点:Abstract classes
Abstract method
重要程度: :star::star::star:
难度: :smiley::smiley:
Abstract class
重要程度: :star::star:
难度: :smiley::smiley:
Arrays and ArrayLists
Introduction to arrays
Referring to arrays and elements
重要程度: :star::star::star:
难度: :smiley:
Initialising arrays
重要程度: :star::star:
难度: :smiley:
易错点:必须initialise array
Arrays and references
Class base type array
重要程度: :star:
难度: :smiley:
Array parameters
重要程度: :star::star:
难度: :smiley:
return an array
重要程度: :star::star:
难度: :smiley:
易错点:privacy leak
Programming with arrays
for each
重要程度: :star::star:
难度: :smiley::smiley:
sort
重要程度: :star::star:
难度: :smiley::smiley:
难点:algorithm
Enumerated types
重要程度: :star::star:
难度: :smiley::smiley:
:warning: 考点:ArrayList
ArrayList class
重要程度: :star::star::star:
难度: :smiley::smiley:
难点:可以是不同type,但是有限制
Multidimensional arrays
2d arrays
重要程度: :star:
难度: :smiley::smiley::smiley:
Ragged arrays
重要程度: :star:
难度: :smiley::smiley:
Console I/O
String class
String operations
重要程度: :star:
难度: :smiley:
Formatted console output
Format specifiers
重要程度: :star::star::star:
难度: :smiley:
Command line inputs
Handling command line inputs
重要程度: :star:
难度: :smiley:
Console input with Scanner class
Scanner input
重要程度: :star::star::star:
难度: :smiley:
易错点:input type
:warning: 考点:Operations for primitive type
Arithmic operation
重要程度: :star:
难度: :smiley:
Comparison operations
重要程度: :star:
难度: :smiley:
易错点:short-circuit evaluation
Type casting
重要程度: :star:
难度: :smiley:
难点:自动cast和手动cast
Generics
:warning: 考点:Introduction to generics & generic classes
Type parameter
重要程度: :star::star:
难度: :smiley::smiley:
Instantiation
重要程度: :star::star:
难度: :smiley::smiley:
:warning: 考点:Bounds for type parameters
Bounded type parameter
重要程度: :star::star:
难度: :smiley::smiley::smiley:
Generic methods
Inheritance with generic classes
Class I
Encapsulation
Encapsulation
重要程度: :star:
难度: :smiley::smiley:
public & private modifiers
重要程度: :star::star:
难度: :smiley::smiley:
难点:private的access问题
Accessor & mutator methods
重要程度: :star::star::star:
难度: :smiley::smiley:
Preconditions & postconditions
重要程度: :star:
难度: :smiley:
:warning: 考点:Overloading
Overloading
重要程度: :star::star::star:
难度: :smiley::smiley:
易错点:overload的parameter数量和type必须一样
Class definitions
instance variables and methods
重要程度: :star::star::star:
难度: :smiley:
void method
重要程度: :star::star::star:
难度: :smiley::smiley:
method that return a value
重要程度: :star::star::star:
难度: :smiley::smiley:
Local variables
重要程度: :star::star:
难度: :smiley:
易错点:Java没有global variable
Call-by-value
重要程度: :star:
难度: :smiley:
易错点:Java都是call-by-value
this parameter
重要程度: :star::star::star:
难度: :smiley::smiley:
Constructors
Constructors
重要程度: :star::star::star:
难度: :smiley::smiley:
No-argument constructor
重要程度: :star:
难度: :smiley:
易错点:忘记添加no-argument constructor,导致error
Introduction to Java
Structure of Java program
Compiled & interpreted language
重要程度: :star:
难度: :smiley:
易错点:Java has property of both
OOP
重要程度: :star:
难度: :smiley:
Variable declaration & assignment
Variable naming
重要程度: :star:
难度: :smiley:
Variable declaration
重要程度: :star:
难度: :smiley:
Primitive type
Eight primitive types
重要程度: :star:
难度: :smiley:
易错点:boolean type只有true和false
File I/O
:warning: 考点:File I/O
Streams
重要程度: :star::star::star:
难度: :smiley::smiley:
PrintWriter
重要程度: :star::star::star:
难度: :smiley::smiley::smiley:
易错点:没有catch足够的exception
Exception
重要程度: :star::star::star:
难度: :smiley::smiley:
Scanner
重要程度: :star::star::star:
难度: :smiley::smiley:
易错点:没有catch足够的exception
Buffered Reader
Reading from text
重要程度: :star:
难度: :smiley::smiley:
File class
重要程度: :star:
难度: :smiley::smiley:
Binary Files
Writing to binary files
重要程度: :star::star::star:
难度: :smiley::smiley::smiley:
难点:serializable的使用方法
Reading from binary file
重要程度: :star::star::star:
难度: :smiley::smiley::smiley:
Serializable interface
重要程度: :star::star::star:
难度: :smiley:
Interfaces and Exceptions
:warning: 考点:Interfaces
Implementation of an interface
重要程度: :star::star:
难度: :smiley::smiley:
易错点:一个class可以有多个interface
Derived interfaces
重要程度: :star:
难度: :smiley::smiley:
Comparable interface
重要程度: :star:
难度: :smiley::smiley:
:warning: 考点:Handling exceptions
try-throw-catch
重要程度: :star::star::star:
难度: :smiley::smiley:
Exception classes
重要程度: :star::star::star:
难度: :smiley::smiley:
getMessage
重要程度: :star::star:
难度: :smiley:
Multiple catch
重要程度: :star::star::star:
难度: :smiley::smiley:
易错点:没有安排好catch的exception的顺序
throw Clause
重要程度: :star::star::star:
难度: :smiley::smiley:
易错点:没有在别的方法catch这个exception
Checked & Unchecked exceptions
重要程度: :star:
难度: :smiley:
易错点:check了unchecked exception
finally block
重要程度: :star::star:
难度: :smiley::smiley:
Flow control
:warning: 考点:Branching mechanisms
if - else
重要程度: :star::star::star:
难度: :smiley:
switch
重要程度: :star::star::star:
难度: :smiley:
:warning: 考点:Loops
while & do - while
重要程度: :star::star::star:
难度: :smiley:hile
for
重要程度: :star::star::star:
难度: :smiley::smiley:
难点:nested loop
continue & break
重要程度: :star::star::star:
难度: :smiley:
Class II
:warning: 考点:Static methods and static variables
Static method
重要程度: :star::star:
难度: :smiley::smiley:
难点:在static method中调用non-static method
Static variables
重要程度: :star::star:
难度: :smiley::smiley:
易错点:少用static variables
Wrapper classes
重要程度: :star::star:
难度: :smiley::smiley:
:warning: 考点:References and class parameters
Variables and memory
重要程度: :star:
难度: :smiley:
References
重要程度: :star:
难度: :smiley::smiley:
Class parameters
重要程度: :star::star::star:
难度: :smiley::smiley::smiley:
易错点:privacy leak
null
重要程度: :star:
难度: :smiley:
new operator
重要程度: :star::star:
难度: :smiley:
Copy constructors
重要程度: :star::star:
难度: :smiley::smiley:
易错点:privacy leak
Mutable & immutable classes
重要程度: :star::star:
难度: :smiley::smiley::smiley: