In programming, a class is a template to create objects.
Class is a keyword and so we use this to create a class.
Class Boy:
name = "Archie"
Here I made a class called Boy and made the name of this specific boy 'Archie'.
To print this specific this name you do the following:
print (boy.name) - not a link
Doing this searches into the class and gets out the name and prints it, classes' data is private and can't be accessed without specifically instructing it to within the program and can't be accessed outside it.
Comments