Он позволяет обращаться с объектами разных классов как с объектами общего родительского класса.
На примерах из картинок: функция len() одинаково работает со строками и списками, метод sound() по-разному реализован у классов Animal, Dog и Cat, а встроенные функции вроде print() автоматически адаптируются к любому типу данных.
Суть в том, что код остаётся единым, но поведение меняется в зависимости от контекста. 👍
Он позволяет обращаться с объектами разных классов как с объектами общего родительского класса.
На примерах из картинок: функция len() одинаково работает со строками и списками, метод sound() по-разному реализован у классов Animal, Dog и Cat, а встроенные функции вроде print() автоматически адаптируются к любому типу данных.
Суть в том, что код остаётся единым, но поведение меняется в зависимости от контекста. 👍
A few years ago, you had to use a special bot to run a poll on Telegram. Now you can easily do that yourself in two clicks. Hit the Menu icon and select “Create Poll.” Write your question and add up to 10 options. Running polls is a powerful strategy for getting feedback from your audience. If you’re considering the possibility of modifying your channel in any way, be sure to ask your subscribers’ opinions first. Public channels are public to the internet, regardless of whether or not they are subscribed. A public channel is displayed in search results and has a short address (link). A Telegram channel is used for various purposes, from sharing helpful content to implementing a business strategy. In addition, you can use your channel to build and improve your company image, boost your sales, make profits, enhance customer loyalty, and more. How to Create a Private or Public Channel on Telegram? Telegram channels fall into two types:
from us