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

3.1.1 3.1.2 3.1.3 3.1.4 3.1.5 3.1.6 We measure air pressure in (hectopascals/degrees). Lines joining places of equal pressure are known as (isotherms/isobars).
Solve for the value of X
What major problem did George Washington help stop just after the end of the American Revolution? Group of answer choices Newburgh Conspiracy Trade Disputes
Tomas and Saturn are partners who share income in the ratio of 3:1. Their capital balances are Br. 40,000 and Br. 60,000 respectively. Income Summary has a c
What’s the value of X when 10 X equals 12
Frank needs to find the area enclosed by the figure. The figure is made by attaching semicircles to each side of a 58 dash m​-by-58 dash m square. Frank says th
Most of the fresh water on earth is
What is the slope of a line that is parallel to y = 5x + 3?
Forral Company has never paid a dividend. But the company plans to start paying dividends in two years-that is, at the end of Year 2. The first dividend is expe
Graphing y=-1/2x+8 y=2x-7