Creating multiple class objects and storing them in a List

preview_player
Показать описание
In this tutorial we will learn how to create multiple objects and store them in a list. We will also learn how to access the objects from the list and evoke the required methods of the class.
Рекомендации по теме
Комментарии
Автор

Exactly what I’ve been looking for, ty!

MrWrklez
Автор

this is not creating multiple objects, this is instantiating the same object stored at the same address over and over again and storing it's information in a list, to test this you can print the List and check the objects addresses, problematic if you need attributes that are proper to the object

omarbensalem
Автор

Thank you but please let me know why print(L.Disply()) doesn't work. It means that we must use a loop for accessing each element of L not in a single line?

abtinmeysami
Автор

can you make the printed list of objects horizontally? like the 1st record is on the left and on the right side is the second record

mlss
Автор

This video cleared all my concept❤️❤️❤️

mannumahto
Автор

Its not creating multi object. Just overwriting and contains in a list.

ufukhn
Автор

can you print the list of objects side by side?

mlss
Автор

एक नंबर सर, सापडत सापडत नवत हे कसं करायच

benten