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

difference between the Soviet Union and the United States
What two things keeps the planets, asteroids, comets and moons in orbit?
In the field of philology, which of the following is evidence that languages share ancestry? A. call systems B. cognate words C. linguistic relativity D.
Which equation represents y=13x-12
A). You plan to invest $1978 in an account with two different options. Option 1 earns 8.5% annually, with interest to be compounded continuously. How much money
Tim has 39 pairs of headphones and 13 music players. Tim wants to sell all of the headphones and music players in identical packages.
Please help I am struggling so bad
(-7,-5) lies in which of the following quadrants [ ]a) Q1 b) Q2 C) Q3 d) Q4​
calculate the [H3O+] of 0.35 M solution of benzoic acid, HC7H3O2
What would the balanced chemical equation when NaOH(s) and H2O(l) are mixed? (with steps and states of matter please)