Asked by joseph onuorah on May 13, 2024
Verified
Assigning an object of a derived class to a variable of a base class is called:
A) static binding
B) dynamic binding
C) upcasting
D) downcasting
Upcasting
The casting of a derived class object to a base class object, which typically does not require an explicit type casting.
Derived Class
In object-oriented programming, a class that extends functionality from another class, acquiring its attributes and methods with the possibility of introducing new features and overwriting existing ones.
Base Class
The class from which other classes inherit properties and methods, often referred to as the superclass.
- Understand the process and implications of upcasting and downcasting in object orientation.
Verified Answer
Learning Objectives
- Understand the process and implications of upcasting and downcasting in object orientation.
Related questions
Downcasting Should Be Used Only in Situations Where It Makes ...
Assigning an Object of an Ancestor Class to a Descendent ...
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 ...