Karteikarten
Definitions
Karten in diesem Stapel (4)
- 1Class DefinitionClass is a blueprint for creating object
When you want to make an object, you follow the instructions laid out in the class. It tells your program what data and methods will be included in objects of that type but doesn't contain any specific data itself. It's the general idea of an object. - 2Object DefinitionAn "object" is a general term for any data with attributes (characteristics) and methods (functions or procedures) that are used to represent and manage data. Everything in Python is an object, including numbers, strings, and functions.
- 3Object Two main characteristicsEvery object has two main characteristics:
• State: The attributes or data that describe the object. For our "Dog" object, this might include attributes like "name", "color", and "state".
• Behavior: The actions or methods that the object can perform. In Python, methods are functions that belong to objects and can change the object's state or perform specific operations. - 4—
Informationen
- Beschreibung
- Coursera Python Karteikarten am Definitions, erstellt von Boris Gueorguiev am 18/10/2023.
- Erstellt von
- Boris Gueorguiev
- Aufrufe
- 0
- Bewertung