Question
In OOP, which concept allows a subclass to provide a
specific implementation of a method already defined in its parent class?Solution
Method overriding allows a subclass to redefine a method of its parent class to provide more specific behavior. 1. Dynamic Binding: Overriding enables dynamic (runtime) polymorphism, allowing a subclass method to be invoked via a parent class reference. 2. Specialization: It customizes inherited behavior, making objects more precise in functionality. For example, a generic draw() method in a Shape class can be overridden by a Circle subclass to draw circles. 3. Liskov Substitution Principle: Overriding ensures subclass objects can seamlessly replace parent class objects without affecting system behavior. Option C exemplifies OOP’s adaptability and extendability by redefining methods at runtime. Why Other Options Are Incorrect: • A) Encapsulation: Manages data access, unrelated to redefining methods. • B) Method Overloading: Involves multiple methods with the same name but different parameters, unrelated to inheritance. • D) Abstraction: Focuses on defining essential features, unrelated to runtime behavior customization. • E) Composition: Relates to object containment, not method redefinition.
Which of the following is NOT one of the biases in decision making?
Decision making process first requires identification of problem. Which of the following types of problems can be considered here?
How does a cost-benefit analysis contribute to selecting the best solution?
The pre-dispositioning theory of decision making was given by ___________
Which of the following is not a characteristic of decision making?
Which of the following is not a feature of Decision-making process?
Leaders use specific and different styles when contemplating decisions. One such style is the directive decision making style. Which of the following is...
Which of the following style of decision-making focuses on long term?
Which of the following best describes a decision tree?
Which of the following technique of decision making is a process in which a group of individuals generate and state ideas, but in which the rules prohib...