Asked by Madhur Miglani on Sep 26, 2024
Verified
Assigning an object of an ancestor class to a descendent class is called:
A) static binding
B) dynamic binding
C) upcasting
D) downcasting
Downcasting
The process of converting a reference of a parent class to a reference of a child class in the object hierarchy.
Ancestor Class
A class from which another class is derived, either directly or through one or more levels of inheritance.
Descendent Class
A class in object-oriented programming that inherits properties and methods from one or more base classes, also known as a subclass.
- Acquire knowledge on the method and impacts of upcasting and downcasting within the realm of object orientation.
Verified Answer
Learning Objectives
- Acquire knowledge on the method and impacts of upcasting and downcasting within the realm of object orientation.
Related questions
Downcasting Should Be Used Only in Situations Where It Makes ...
Assigning an Object of a Derived Class to a Variable ...
Orientation Tolerances, When Applied to Plane Surfaces, Control Flatness If ...
A Tolerance of Form or Orientation May Be Specified Where ...
The Shape of an Object and Its ____________________ Influence the ...