- Computing and data
- Grade 12
Computer science: objects, databases and systems – 12th Grade
Instead of variables in one place and the code that handles them somewhere else, an object holds both. The closing year of the five unit computer science stream. Describing a problem as objects that carry their own data, keeping that data in tables a query can reach, and seeing what the operating system and the network are doing beneath a program that looks like it is alone.
All lessons in Computer science: objects, databases and systems (in learning order)
Common questions
What is An object is data together with the operations that belong to it?
Instead of variables in one place and the code that handles them somewhere else, an object holds both. The gain is not tidiness, it is that a change stays inside one boundary.
What is The class as a pattern and the objects made from it?
A class is written once and describes a kind of thing. Each object made from it is a separate thing of that kind, with its own values in the same named places.
What is Hiding the inside so it can be changed safely?
When the rest of the program can reach in and touch an object's values directly, nobody can change how the object works. Encapsulation is what buys back the freedom to improve it later.
What is Inheritance, and when a shared parent is the wrong idea?
One class can take everything another already has and add to it. That is powerful when the new kind really is a kind of the old one, and a lasting mistake when the two merely resemble each other.
What does Computer science: objects, databases and systems for 12th Grade cover?
The closing year of the five unit computer science stream. Describing a problem as objects that carry their own data, keeping that data in tables a query can reach, and seeing what the operating system and the network are doing beneath a program that looks like it is alone. The unit includes 8 ordered lessons covering An object is data together with the operations that belong to it, The class as a pattern and the objects made from it, Hiding the inside so it can be changed safely, Inheritance, and when a shared parent is the wrong idea.