Study and run ALL the online exercises and examples in the windows embedded in the tutorial (DO NOT code them in the window(s) on this page).
A programming paradigm is a fundamental style of computer programming, serving as a way of building the structure and elements of computer programs.
Object Oriented Programming (OOP) is one powerful and popular programming paradigm.
Other programming paradigms are (to name a few): procedural (which is what we have mainly used so far), functional, and logic programming.
1. Read the tutorial starting with the heading "Object Oriented Programming" through the heading "Glossary".
Study and run ALL the online exercises and examples in the windows embedded in the tutorial (don't code them in the window on this page).
Notes:
- DO NOT SKIP the exercises/programs throughout the tutorial! They will reinforce your understanding and give you a stronger understanding and insight of OOP.
- You don't have to turn in these programs/exercises.
1. Remix the trinket on the right to make your own copy. Call it "OOP - Introduction".
2. Program the tutorial exercises 1 through 6, in the window on the right.
Hint:
- you can/should use the the code you have studied and run throughout the tutorial.
3. When done with the tutorial exercises, save your work and submit the link through Veracross.
1. Make sure you fully understand the programs covered in the tutorial above, and then read the description of public, protected, and private class variables.
2. Program the following project, making sure ALL your class variables are private, and can only be accessed through getter and setter class methods.
(additional and optional: read this for an alternative to getters and setters using property decorators)
In the window on the right ....
Remix the program in the window on the right, and call it "OOP - project 1".
Hints:
- you
The output of your program should look similar to the following (partial output):
3. When done, save your work and submit the link through Veracross.
1. ... , and call it "OOP - project 2".
2. Modify
Hint:
- you can use...
The output of your program should look similar to the following (partial output):
3. Enhance your program
4. Finally, add the capability
The output of your program should look similar to the following (partial output):
5. When done, save your work and submit the link through Veracross.
1. ..., and call it "OOP - project 3".
2. Modify
Hint:
- you can use...