It’s an OOP World…
…after all!
About this song
James Gosling, Sun Microsystems
An easter egg logo? It’s our way of discussing encapsulation!
An object contains everything it needs to do its job: raw ingredients (attributes) and ‘super powers’ — methods (functions). This is a pivotal idea in the world of Object-Oriented Programming, where classes are like engines or factories that pump out self-maintaining objects.
This song, sung to the tune of “It’s a Small World,” is a tribute to these ideas, ‘encapsulated’ in a zany song. Don’t remember the original tune? We’ve got you covered with the It’s a Small World movie clip — fair warning: it will take up permanent residence in your brain.
If you are fortunate enough to be taking APCS, we also have a review of Java and OOP big ideas right here at TNT. Check it out!
Java Fundamentals
Data Types
Learning Java now Over half a year Are we used to it? Over all our fears? What's the deal? Why the hype? Over 10 data types! It's an OOP OOP World!
Classes
There's a big idea You must really grasp It's that everything belongs in a class What's a class, did you say? Answer well, get an A! It's an OOP World after all
It’s a OOP World after all
It’s a OOP World after all
It’s a OOP OOP world!
Methods
Methods
With our methods You may have been annoyed They return a type But they may be void Just don't freak, don't you run They are only functions... It's an OOP World after all!
Methods and Parameters
There's a kooky thing But it's Heaven sent Called 'parameter' or else Argument For a method they're fuel A magnificent tool It's an OOP OOP world
Driver code
There is driver code That controls the show The main method makes The whole program go Public? yes...static too! String array passing through! It's a OOP World after all!
Language Design
Compiled vs Interpreted
Python runs its code Till it hits a snag Java's different: some think that its a drag It's compiled: just one flaw Whole code breaks, then you bawl It's an OOP World after all!
General data structures
Data structures wow! Give them lots of praise Using tons of them, Likely earns 'a raise' Did you see This verse done Did you catch the big pun? It's a OOP OOP World!
It’s a OOP World after all
It’s a OOP World after all
It’s a OOP OOP world!
Data Structures
ArrayLists
ArrayLists for storage Dynamic-sized Member methods make These guys highly prized: 'get', 'add', 'set' and 'contains' Even more still remain! It's a OOP OOP world
It’s a OOP World after all
It’s a OOP World after all
It’s a OOP OOP World!
Advanced Concepts
2D Arrays (Matrices)
Many rows on board Each with columns, hey! We've got what we need for a game to play Nested loops, cells in places Specified by dual square braces It's a OOP OOP world
Recursion
What's recursion now, Get it off the shelf: A loop process when Methods call themselves A base case, don't you blow Or you'll stack overflow! It's an OOP OOP World!