- Популярные видео
- Авто
- Видео-блоги
- ДТП, аварии
- Для маленьких
- Еда, напитки
- Животные
- Закон и право
- Знаменитости
- Игры
- Искусство
- Комедии
- Красота, мода
- Кулинария, рецепты
- Люди
- Мото
- Музыка
- Мультфильмы
- Наука, технологии
- Новости
- Образование
- Политика
- Праздники
- Приколы
- Природа
- Происшествия
- Путешествия
- Развлечения
- Ржач
- Семья
- Сериалы
- Спорт
- Стиль жизни
- ТВ передачи
- Танцы
- Технологии
- Товары
- Ужасы
- Фильмы
- Шоу-бизнес
- Юмор
coding #shorts #subscribe. #engineering #cse #vews #python #programming
💻 Program Description:
This Python program defines a class named Movie that demonstrates the concept of classes and objects in Object-Oriented Programming (OOP).
The class has three data members — n, d, and s — which represent the name, destination, and salary of an object, respectively.
The constructor method __init__() initializes these values when an object is created. The parameter s has a default value of 30000, which means if no value is given for salary, it automatically becomes 30000.
The display() method is used to print the details of the object in a formatted way.
In the program, an object c of the Movie class is created with two emoji values (🤔 and 💯💯) as arguments. When the display() method is called, it prints the values of the attributes along with the default salary.
🖥️ Output:
name is 🤔
destination is 💯💯
salary is 30000
subscribe for more videos
Видео coding #shorts #subscribe. #engineering #cse #vews #python #programming канала S Patil
This Python program defines a class named Movie that demonstrates the concept of classes and objects in Object-Oriented Programming (OOP).
The class has three data members — n, d, and s — which represent the name, destination, and salary of an object, respectively.
The constructor method __init__() initializes these values when an object is created. The parameter s has a default value of 30000, which means if no value is given for salary, it automatically becomes 30000.
The display() method is used to print the details of the object in a formatted way.
In the program, an object c of the Movie class is created with two emoji values (🤔 and 💯💯) as arguments. When the display() method is called, it prints the values of the attributes along with the default salary.
🖥️ Output:
name is 🤔
destination is 💯💯
salary is 30000
subscribe for more videos
Видео coding #shorts #subscribe. #engineering #cse #vews #python #programming канала S Patil
Комментарии отсутствуют
Информация о видео
26 октября 2025 г. 9:59:08
00:00:21
Другие видео канала









