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 is the unit rate for 14 lb for $2.99
Is a owl a specialists or generalists
Identify H2 and describe its properties
Which of the ordered pairs in the form (x, y) is a solution of this equation? 5x-y/3 = 13 (2, -9), (3, -6) a. The first is not a solution, but the second is. b.
Plants transform some of the electromagnetic energy from the sun into what?
Seven out of every 8 students surveyed owns a bike. The difference between the number of students who own a bike and those who do not is 72. How many students
How do you solve X+y=11 Xy=30
Julia spends $2.25 on has for her lawn mower. She earns $15.00 mowing her neighbor's yard. What is Julia's profit?
What's bigger 8/15 or 11/20 (fractions)
a shoe store sold 8 pairs of shoes for a total of $256. each pair cost the same amount what was the price of each pair of shoes?