OOP Objects and Classes Reviewer
OOP Objects and Classes Reviewer
• Development Complexity: OOP makes development easier, not more complex. Statement:
False
• Object Definition: OOP is a programming method that defines objects, which are tasked
with specific behaviors or functions. Statement: True
• Data Hiding: OOP provides data hiding, unlike global data in procedural programming that
can be accessed anywhere. Statement: True
• Real-World Problem Solving: OOP offers solutions that are well-suited to real-world
problems. Statement: True
• Java Naming Convention: Java has specific naming conventions for readability and
consistency. Statement: True
• Syntax vs Naming Rules: Java syntax rules should not be confused with naming
conventions. Statement: (True but confusingly stated)
• Dynamic Java Naming Rule: Java does not have a 'dynamic' naming rule. Statement: False
• No White Spaces: Names in Java must not contain white spaces. Statement: True
• Basic Characters Only: Special characters are generally avoided in naming. Statement:
False
3. 3. Object Instance
3. Java API (Built-In Packages): Classes included in the Java Development Environment for
reuse.
8. Class Variable: A variable that belongs to a class rather than instances of the class.
10. Block: Denoted by curly braces `{}`, it groups code statements together.
11. Method Body: The code or functions within the curly braces of a method.
12. `this` Keyword: Refers to the current object in a method or constructor. It is used to
eliminate confusion between class attributes and parameters with the same name.
13. Constructors: The method called when you instantiate a class to create an object.
14. Object Methods: Methods declared inside an object class that represent the object's
purpose or behavior.
15. Polymorphism: The concept of 'different forms', where one entity provides multiple
implementations or behaviors.