CS 1302

Kom i Gang. Det er Gratis
eller tilmeld med din email adresse
Rocket clouds
CS 1302 af Mind Map: CS 1302

1. Ch 11

1.1. Inheritance

1.2. Polymorphism

1.2.1. Definition: A super type can reference a subtype

1.2.2. A super type can refer to a subtype

2. Ch 13

2.1. Abstract

2.1.1. Definition : An abstract class is a class that is declared abstract. Abstract class cannot be instantiated (cannot create a object from it). But they can have subclasses An abstract method is a method that is defined but not implemented in the class. The subclasses must implement these abstract methods or call them selves abstract classes.

2.1.2. UML : Abstract is italizised

2.1.3. Abstract method : is a method that is declared without an implementation (without braces, and followed by a semicolon) example : abstract void moveTo(double deltaX, double deltaY);

2.1.4. If a class has a Abstract method the class must be declared Abstract

2.1.5. * If the super class is abstract and has abstract methods, the subclass must implement all the abstract method from the super class If the subclass does not implement all abstract methods from the superclass. The subclass must be abstract