Why doesn’t work Dependency Injection from example?

I have tried to create DI like there (Data and DependentClass)
but it doesn’t working for me:

“ArgumentCountError: Too few arguments
to function DependentClass::__construct(), 0 passed….”

What’s wrong?