no idea cuz professor is incompetent Flashcards

1
Q

What as an ADT?

A

Abstract Data Types are models of a class (cannot be instantiated) that would have both data and operations.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What is the difference between abstract classes and interfaces?

A

Classes can only extend 1 abstract class while inheriting the methods fully defined in the abstract class, whereas a class can implement multiple interfaces but need to implement the methods of each interface itself (the interface only requires you to have the method on the class with the return type, but you have to build the logic yourself).

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What is the difference between “extends” vs “implements”

A

Extending inherits the logic of methods, whereas implements means you gotta do it yourself.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q
A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly