Algorithms
-
Objects & AlgorithmsComputer Science 2022. 10. 21. 20:08
Let's say we have a class such as: class student: def __init__(self): self.firstname = 'David' self.lastname = 'Joyner' DJ = student() in this code, we can say DJ is an instance, student is object object is a general class that cannot be specified, and DJ is an instance that can be specified. for the other example, we can say 'person' is object, 'David Joyner' is instance that exists only one in..