Class | Inheritance | Constructor | Python Practical | Syit | Fycs | Python Tutorial for beginners
Description
7. Write the program for the following:
a. Design a class that store the information of student and display the same
b. Implement the concept of inheritance using python
c. Create a class called Numbers, which has a single class attribute called
MULTIPLIER, and a constructor which takes the parameters x and y (these should
all be numbers).
i. Write a method called add which returns the sum of the attributes x and y.
ii. Write a class method called multiply, which takes a single number
parameter a and returns the product of a and MULTIPLIER.
iii. Write a static method called subtract, which takes two number parameters, b and c, and returns b - c.
iv. Write a method called value which returns a tuple containing the values of x and y. Make this method into a property, and write a setter and a delete for manipulating the values of x and y.
Here I am sharing Python Practical Link:
https://docs.google.com/document/d/1SCZUqCiOTiTodKv8j4355FHfGP-qSEqks6TVzuZjoXA/edit?usp=sharing
Class | Inheritance | Constructor | Python Practical | Syit | Fycs | Python Tutorial for beginners
Just follow my YouTube channel
https://www.youtube.com/c/ERNICALRAFIYA
Asp.net with C# Series:
https://www.youtube.com/watch?v=vUdYo_LtNWY&list=PLVkJ7gH9knNrPmqNZj_dPfo1ASx81_4M9
Python Tutorial Series
https://youtube.com/playlist?list=PLVkJ7gH9knNow_ZmrSDad8IQUNqZKOyqe
PHP Tutorial Series
https://youtube.com/playlist?list=PLVkJ7gH9knNqnrbRiPtksQKfchmX_e-zb
Google Form Tutorial:
https://www.youtube.com/watch?v=RY8VzSKSUzM&list=PLVkJ7gH9knNpXXV1yJ42Ih2E1mcMwH5Yc
Excel Tutorial:
https://www.youtube.com/watch?v=sOLCqI9bYsY&list=PLVkJ7gH9knNoxqtInYd2tXmb7j3tUldI5
For more videos like ????????, Share ???? & Subscribe My Channel #ErnicalRafiya.
Thank You.
#Python #Class
Comments