Unit 4 - Classes Visual Programming - INF1511
Unit 4 - Classes Visual Programming - INF1511
INF1511 Unit 6
Visual Programming I
Classes
Assumptions
Overview Unit 6
• The theory of classes in programming.
• The practical application (and demonstration)
of classes in programming.
• The assessment of learning in this unit.
Programming elements
• Literals - _______________________________________
• Variables - ______________________________________
• Keywords (30 in Python … and else elif exec … )
• Comments #
• A keyword is IF and ELIF
• A keyword is FOR
• A keyword is WHILE
• Functions are declared! The keyword is ……
• CLASS?
• Classes are ….
• A system. There is always input, processing
and output.
• A function has input, processing and output.
• A class has attributes and functions!
• Define a class.
• A template/blueprint – DATA and OPERATIONS.
• Use the class attributes – variables (data
members) and methods (member functions).
• Define the functions in a class.
• From classes – create instances – objects.
• Classes can be independent or inherit (from a
base class).
Downloaded by Suretha Erasmus-Falgate (suretha.eras@gmail.com)
lOMoARcPSD|3204666
Class
More Class
Practical application