Skip to content

Latest commit

 

History

7 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 

Repository files navigation

Learning_classes

Learning classes in python

The Classes.py file contains 3 classes that are used to instantiate a "mechanical tram", an "electric tram" and a "battery" for an electric tram. This file uses the technique of class inheritance and overriding the methods of the parent class. Example: the ElecricalTramvai class inherits from the Tramvai class, and the get_count_gas method in the Tramvai class displays the volume of the fuel tank in the console, unlike the same method in the ElectricalTramvai class, where it says that there is no fuel tank in the electric tram.

LearningMetods.py шт this file contains example classes for studying built-in class methods, inheritance, polymorphism and more

About

Learning classes in python

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages