BUS4 092 Lecture 9: Lecture 9
Document Summary
A specific dog is an instance of that abstraction: class properties, methods, and event procedures: buttons have properties such as text, name, background color etc. Buttons also have properties like focus(): steps, identify the class: e. g. list of class students that have completed certain courses, need a transcript. In this case the noun and noun phrases e. g. student, courses, transcript all become classes. Similarly verbs e. g. scheduling courses for students can result in a scheduling class: defining a class, attributes: what are the attributes of a class. These will be implemented as properties of a class. Attirbutes define properties that are common to all objects of the same class: methods/operations: classes also perform certain activities e. g. humans drive cars, trains, etc. Like before public variables can be accessed outside the class and private cannot. Declare three member variables in the following manner: