Abstract Class Flashcards

1
Q

Abstract class

A

A method which contains two or more abstract methods

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

Abstract method

A

A method that has a deceleration but does not have an implementation

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

Uses of abstract classes

A

Prevents a user from creating an object of that class

Compels a user to override abstract methods in a child class

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

What does abc stand for in abstract classes

A

Abstract base class

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

How do you import abstract methods

A

From abc import ABC, abstractmethod

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