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

What do all flexible objects have in common?
Which Boundary can produce volcanoes
Why are Americans considered to be an “ideologically homogeneous” people?
The inclusion of Arabic words in Turkish and Farsi, and the use of the Arabic alphabet to write the Turkish and the Persian languages many centuries ago, are ex
Translate the word phrase into a variable expression. The number a is increased by the number b. A. a – b B. a/b C. a + b D. a x b
round 88999 to nearest ten thousand
What does it mean to describe a scientist as skeptical? Why is skepticism considered a valuable quality in a scientist?
Dry ice, or solid carbon dioxide, has the molecular formula CO2. How should you classify it? element compound mixture colloid suspension
Which of the world's oldest pieces of literature tells the story of a legendary Sumerian hero and priest-king? a. Iliad b. Epic of Gilgamesh c. Ode to Babylo
what is the least prime number greater than 50