Computer Knowledge
Object-Oriented Programming
2,686 QuestionsObject-oriented programming questions test core computer science concepts like classes, inheritance, polymorphism, and encapsulation. The focus includes Java program structures, method overloading, and memory allocation for objects. This topic is essential for technical sections in various recruitment tests.
Object-Oriented Programming Questions
Which design pattern is used to define a family of algorithms, encapsulate each one, and make them interchangeable?
Which design pattern is used to create a single instance of a class and provide a global point of access to that instance?
Which design pattern is used to create objects without specifying the exact class of the object that will be created?
Which design pattern is used to create a new object by copying an existing object?
Which design pattern is used to add new functionality to an existing object without changing its structure?
Which design pattern is used to convert the interface of a class into another interface that a client expects?
Which design pattern is used to provide a unified interface to a set of interfaces in a subsystem?
Which design pattern is used to define an interface for creating objects, but lets subclasses decide which class to instantiate?
Which design pattern is used to separate the construction of a complex object from its representation so that the same construction process can create different representations?