Flashcards
Abstract Classes (CE203)
Cards in this deck (3)
- 1What is an abstract class?Contains common features of Sub-class, attributes and methods
(reduce complexity)
Prevents class from creating objects
Abstract classes cant be instantiated,
only inherited from - 2How do you declare an abstract class?Declared by the key word ABSTRACT
e.g
public ABSTRACT class Bank - 3What is an abstract method?Provides specification for sub class
Defines what methods MUST be included
in their sub classes
Makes sure there is consistent behaviour
in the class hierarchy
Therefore different types of class, stored in a common structure
Information
- Description
- Flashcards on Abstract Classes (CE203), created by jeff caviliar on 07/05/2020.
- Created by
- jeff caviliar
- Views
- 0
- Rating