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

Compared to the physical and chemical properties of the compound NO2 the compound N2O has (1) different physical properties and different chemical properties (2
is the planet Uranus surface rocky or flat?
is the planet Uranus surface rocky or flat?
Which element has atoms with the strongest attraction for electrons in a chemical bond? (1) chlorine (3) fluorine (2) nitrogen (4) oxygen
What is the approximate height of the average adult in centimeters?
Which change results in the formation of different substances? (1) burning of propane (2) melting of NaCl (s) (3) deposition of CO2(g) (4) solidification of wat
A staple is made from 40mm of wire. How many staples can be made from 10meters of wire?
A 1-gram sample or a compound is added to 100 grams of H2O(l) and the resulting mixture is then thoroughly stirred. Some of the compound is then separated from
What is the approximate height of the average adult in centimeters?
If the President can no longer serve, who becomes President?