Search the courses, subjects, tracks, games and features, or jump straight to a page.
3 cards from this section. Quick, good the night before a test.
What are the four major principles of OOP?
Think of the acronym E-A-I-P.
Define the term 'constructor' in the context of Java.
It has the same name as the class.
What does OOP stand for?
Focus on how objects and classes interact.
True or False: Encapsulation allows direct access to private variables.
Consider the ATM analogy.
How would you implement a class structure for a vehicle system where cars, bikes, and trucks share properties?
Think about shared traits like wheels and engines that different vehicles have.
Design a small program that showcases polymorphism using method overriding for different animal sounds.
Consider how each animal can produce a unique sound while sharing the same method structure.
4 more questions in this section. Enroll free to practise them all.
Enroll free