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

The Distributive Property of 7 x 1,214
how many men were killed in the battle for independence
if the force moving an object points at least partially in the opposite direction of the objects motion, the work is considered to be _______________
Two particles with different charges are on the same equipotential line. Do these particles have the same electric potential energy? Please, explain
Write 1/4 as a decimal rounded to 1 significant figure
The period of a carrier wave is T=0.01 seconds. Determine the frequency and wavelength of the carrier wave. a. f=10 Hz, λ=3E8 meters b. f=100 Hz, λ=3E7 meters c
Where is the red dot located?
A solar-powered car has a kinetic energy of 110250J. Its mass is 180kg. Work out how fast the car is travelling.
Solve the system of linear equations using the Gauss-Jordan elimination method. 2x + 10y = 21 −6x + 8y = 32
Question 15 (1 point) What is the meaning of the term luminosity? Question 15 options: a) How bright a star appears when we look at it through a telescope b) Th