Question Bank
1899 approved questions from the community
Which of the following are types of constructors in OOP? (Select all that apply)
In single inheritance, a class can inherit from only one base class.
Which of the following are advantages of using interfaces in OOP? (Select all that apply)
What is hybrid inheritance?
Which of the following are access specifiers commonly used in OOP? (Select all that apply)
What is multilevel inheritance?
What is the primary difference between an abstract class and a concrete class?
What type of polymorphism is method overloading?
Which of the following are ways to achieve method overloading? (Select all that apply)
What type of polymorphism is method overriding?
What is a mixin in object-oriented programming?
What is the difference between aggregation and composition?
What is the Open-Closed Principle (OCP)?
What best practice should be followed regarding access specifiers?
What is coupling in OOP?
Why should excessive use of getter/setter pairs be avoided?
Favor composition over inheritance is a design principle that suggests composition should be preferred when relationships are less clear.
What is cohesion in OOP?
What relationship does inheritance establish between classes?
What is external coupling?