by Editorial | Aug 25, 2022 | Grade 12, Grade 12 - Inheritance, Grade 12 - OOP
Here is a helicopter overview of how inheritance works using the NetBeans Debugger. Click here to download presentation Here is the code for the four classes for you to examine (many topics in the code have not been discussed in the presentation as this is an...
by Editorial | Feb 8, 2022 | Grade 12 - OOP, Grade 12 - text files
Reading in a text file into an array using the Scanner class and using OOP principals eg static variables and methods, creating objects, passing parameters. This program also uses String handling. There are eight versions of this program. The first versions has no OOP...
by Editorial | Aug 26, 2021 | Grade 11, Grade 11 - OOP, Grade 12, Grade 12 - OOP
Class diagrams are a critical part of any OOP exam in both grade 11 and 12. In the practical exam paper, it is part of the question and must be coded (followed) exactly. In the theory paper, you will need to be able to create your own class diagram according to the...
by Editorial | Jun 13, 2021 | Grade 11, Grade 11 - OOP, Grade 12, Grade 12 - OOP, Grade 12 - Search and Sort
Searching an array in Java Searching for a value in an unsorted array is a standard algorithm that loops from the first element and moves to the last element. These are all two-class programs using an OOP approach where arrays are passed as parameters. Here the...
by Editorial | Jun 12, 2021 | Grade 11 - Critical algorithms, Grade 11 - OOP, Grade 12 - OOP
A typed method can only return one value. (Yes, a method MAY have several return statements but only one of them will execute depending on the condition.) Sometimes we need to return more than one value. To get around the limitation above we can return one array, that...
by Editorial | Jun 3, 2021 | Grade 12, Grade 12 - Critical algorithms, Grade 12 - OOP
You need to be able to code these algorithms quickly. Links have some solutions. 1) Read from a text file (CSV) into a one dimensional array – text file only has one value per line. 2) Read from a text file (CSV) into an array of objects – text file is...