Start your All-Access Pass to unlock this challenge
Challenge 1 / 3
Check out these classes that the intern created, which all have confusing names:
abstract class OtherClass extends GreatClass
{
}
abstract class SomeClass extends OtherClass
{
}
class GreatClass
{
}
class MyClass extends OtherClass
{
}
class Puppy extends SomeClass
{
}
function doSomething(OtherClass $thing)
{
// ...
}
Based on the type-hint, objects of which classes could be passed
to the doSomething()
function?
Skip challenges and go to theNext Chapter