Back to the full dot-point answer
EnglandComputer ScienceQuick questions
2.2 Problem solving and programming
Quick questions on Object-oriented programming techniques in practice: classes, inheritance and polymorphism - OCR A-Level Computer Science H446
3short Q&A pairs drawn directly from our worked dot-point answer. For full context and worked exam questions, read the parent dot-point page.
What is q1?Show answer
State what a constructor does. [1 mark]
What is q2?Show answer
Explain why attributes are made private with getters and setters. [2 marks]
What is q3?Show answer
State how polymorphism lets one loop process objects of different subclasses. [2 marks]
Have a question we have not covered?
This dot-point answer is short enough that we have not extracted many short questions yet. Read the full dot-point answer or ask Mo, our study assistant, in the chat for follow ups.