Interfaces vs Abstract Classes

0.0(0)
studied byStudied by 0 people
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
Card Sorting

1/17

encourage image

There's no tags or description

Looks like no tags are added yet.

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

18 Terms

1
New cards
interface
only public static final variables
2
New cards
interface
variables must datatype and value
3
New cards
interface
final variables are not given default values inherently
4
New cards
interface
words public static and final are optional
5
New cards
interface
methods are all public and abstract; words are optional
6
New cards
interface
method header must end with a semicolon ;
7
New cards
interface
no constructors allowed
8
New cards
interface
only extend interfaces
9
New cards
interface
implemented by classes
10
New cards
interface
all methods must be overridden when implemented
11
New cards
abstract class
can have any type of variable
12
New cards
abstract class
can have abstract or concrete methods
13
New cards
abstract class
must write 'abstract'
14
New cards
abstract method
can not have {} braces; must end with a semicolon ;
15
New cards
non abstract method
must have {} braces
16
New cards
abstract class
public or private constructor needed
17
New cards
abstract class
extends other classes
18
New cards
abstract class
abstract methods must be overridden when extended