PHP - Inheritance and Polymorphism
Given the classes below, which function call will NOT cause a type error?
Choose the correct call:
class Device {}
class Phone extends Device {}
class Tablet extends Device {}
function useDevice(Device $d) {
echo "Using device";
}Choose the correct call:
