Distinguish between a class and an object.
Introduction to Object-Oriented Programming
Original Khojo Papers practice question — not from a past board paper.
Abstraction presents only the essential features of an object and hides the detail. Encapsulation binds the data and the methods that act on it into a single unit and controls access to them. Inheritance lets one class acquire the properties and behaviour of another. Polymorphism lets the same name behave differently according to the context.
No citable source has been recorded for this record. Treat it as practice material, not as fact.
The four together are what distinguish object-oriented programming from procedural programming.
From the same topic and chapter, at a similar level.
Distinguish between a class and an object.
Introduction to Object-Oriented Programming
Explain data abstraction and data encapsulation and state the difference between them.
Introduction to Object-Oriented Programming
State three differences between procedural and object-oriented programming.
Introduction to Object-Oriented Programming
What is a constructor? State three of its characteristics.
Constructors
Name the eight primitive data types of Java and state the size of each.
Values and Data Types
Explain the ternary operator in Java and rewrite "if (a > b) max = a; else max = b;" using it.
Operators and Expressions in Java