laonekopano laonekopano
  • 03-12-2020
  • Computers and Technology
contestada

how and when abstract classes are used in python

Respuesta :

tonb
tonb tonb
  • 03-12-2020

Answer:

A class is called an Abstract class if it contains one or more abstract methods. An abstract method is a method that is declared, but contains no implementation. Abstract classes may not be instantiated, and its abstract methods must be implemented by its subclasses.

Explanation:

So it only makes sense to use them if you plan to have preferably more than one subclass.

Answer Link

Otras preguntas

name at least 4 things our atmosphere does for us?
The recommended way to hold a loose hub on a fan is by
Which is a chemical change
The amount of a person’s paycheck p varies directly with the number of hours worked t. For 22 hours of work, the paycheck is $126.50. Write an equation for the
An analytical essay; a. is a personal story or description. b. often incorporates outside source material. c. usually pulls from material the writer already
Help ^^^ use picture above
what were the effects of john brown's raid?
Many people in the town of Oldenburg moved to find jobs in other cities. This led to a population decrease and a(n) ____ in the demand for food.
None of these—Shelley, Keats, or Byron—died in England. a. True b. False
Identify the mode in the following set of numbers: 2, 5, 7, 9, 15, 14, 12, 8, 4 ,2. a. 2, b. 7, c. 8, d. 15