Abstract Class Flashcards
1
Q
Abstract class
A
A method which contains two or more abstract methods
2
Q
Abstract method
A
A method that has a deceleration but does not have an implementation
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
4
Q
What does abc stand for in abstract classes
A
Abstract base class
5
Q
How do you import abstract methods
A
From abc import ABC, abstractmethod