July 2018
Intermediate to advanced
462 pages
12h 2m
English
We can also make use of two or more class attributes in the class.
Let's assume that besides the class name Student, we want to also add student's code to the class. In that case, we need to add one more attribute, code to the class, and also a getCode() method, which will access the student code assigned. Besides the class, the GUI will also change.
We need to add one more Label widgets and one Line Edit widget to the application and let's save it by another name, demoStudentClass. After adding the Label and Line Edit widgets, the user interface will appear as shown in the following screenshot:

The ...
Read now
Unlock full access