Python Program - multiple objects

preview_player
Показать описание
Design a class that store the information of Student (rollno, name and age) with a constructor to initialize the data member’s and display() method to display all the details.
1) Accept n-number of students details
2) Display the details of all the students in ascending order of name
Рекомендации по теме
Комментарии
Автор

thankyou, this simple concept was hard to find, very well explained

tanaynagarsheth
Автор

Exactly what i have been searching for last one month

rahulparmar
Автор

we makes object as obj=classname(arg) but in this we do not do same why?

anubhavsharma
Автор

This is a great video, but is it possible to achieve the same results without knowing "n"(the number of instances?)
considering student class has been imported into another class, and we want multiple instances of Student objects with necessarily define how many we want.

manolo
Автор

Thank you, you code helped my last project

DZAKY
Автор

Thanks this was helpful. Would love to know how to pass this list information down to other classes (sub classes, related classes etc.)

omarfarag
Автор

Some of the codes did not work such as the append command, and display command

TienFlower
Автор

Sir can you make video on this program

write a class named as employee for reading and writing the employee information using function getinfo() and displayinfo and also make use of constructor

sunnymaurya
Автор

u r not creating multiple objects u r just assigning multiple attributes to single object and saving it each time in a list
i rather make a dictionary with three items and save it in a list whats the purpose of class then if we cant create seperate objects

zaighamawan