Bird
0
0

Which of the following is NOT one of the four main principles of Object-Oriented Programming (OOP)?

easy📝 Conceptual Q11 of 15
Java - Object-Oriented Programming Concepts
Which of the following is NOT one of the four main principles of Object-Oriented Programming (OOP)?
AEncapsulation
BInheritance
CPolymorphism
DCompilation
Step-by-Step Solution
Solution:
  1. Step 1: Recall the four main OOP principles

    The four main principles are Encapsulation, Inheritance, Polymorphism, and Abstraction.
  2. Step 2: Identify the option not in the list

    Compilation is a process of converting code to machine language, not an OOP principle.
  3. Final Answer:

    Compilation -> Option D
  4. Quick Check:

    OOP principles exclude Compilation [OK]
Quick Trick: Remember the four OOP pillars: E, I, P, A [OK]
Common Mistakes:
  • Confusing compilation with abstraction
  • Mixing OOP principles with programming processes

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Java Quizzes