A) Polymorphism B) Abstraction C) Inheritance D) Encapsulation
A) class B) this C) new D) var
A) An instance of an object B) A variable in C++ C) Blueprint for creating objects D) A function in JavaScript
A) Ability for objects of different classes to be treated as objects of a common superclass B) Extending the functionality of a parent class C) Creating objects from classes D) Hiding implementation details
A) Inheriting properties from a parent class B) Overriding parent class methods C) Creating multiple instances of an object D) Binding together the data and the methods that operate on the data
A) A method that returns a value B) A special method that is automatically called when an object is created C) A method used to destroy objects D) A static method
A) Refers to the superclass of a class, used to call methods from the superclass B) Implementing an interface C) Accessing a private method D) Declaring a variable
A) Overriding a method from a superclass B) Hiding the implementation details of a method C) Having multiple methods in a class with the same name but different parameters D) Creating new methods in a subclass
A) Accessing private class members B) Overriding methods from a parent class C) Creating multiple objects from a class D) Hiding the implementation details while showing only the necessary details of an object
A) Allows a class, method, or field to be accessed by any other code in the same package or another package B) Restricts access to within the same class only C) Allows for class extension D) Hides the object details
A) Prevents modification of the class, method, or variable B) Allows multiple inheritance C) Forces method overriding D) Enables dynamic method binding
A) Single Responsibility Principle B) Interface Segregation Principle C) Liskov Substitution Principle D) Open/Closed Principle
A) Protected B) Private C) Public D) Default
A) this B) super C) implements D) extends
A) Encapsulation B) Overloading C) Inheritance D) Overriding
A) Abstraction B) Encapsulation C) Inheritance D) Polymorphism
A) To provide a specific implementation of a method that is already provided by its superclass B) To create new methods in a subclass C) To have multiple methods with the same name in a class D) To hide the implementation details of a method
A) Liskov Substitution Principle B) Single Responsibility Principle C) Open/Closed Principle D) Dependency Inversion Principle
A) Constructor B) Mutator method C) Destructor D) Accessor method
A) final B) abstract C) public D) static
A) extends B) super C) new D) this
A) Overloading B) Overpassing C) Overriding D) Override
A) Abstraction B) Inheritance C) Encapsulation D) Polymorphism
A) Interface Segregation Principle B) Open/Closed Principle C) Single Responsibility Principle D) Liskov Substitution Principle
A) Virtual Inheritance B) Abstract Classes C) Polymorphism D) Interfaces
A) Don't Repeat Yourself B) Dynamic Reuse Yard C) Do Repeat Yourself D) Data Representation Year
A) Dependency B) Aggregation C) Inheritance D) Composition
A) Composition B) Aggregation C) Inheritance D) Dependency |