Question regarding polymorphism - Using a Child Class as its Parent Class

Can anyone expand upon this?

Using the explicit child as parent syntax is most helpful when we want to declare objects in bulk.)

Some context is given below. What would be an example of declaring child objects in bulk and why is it easier if done explicity?

Thank you :smiley:

https://www.codecademy.com/courses/learn-java/lessons/java-inheritance-and-polymorphism/exercises/using-child-class-as-parent-class

BankAccount kaylasAccount = new CheckingAccount(600.00);

  • We can use kaylasAccount as if it were an instance of BankAccount, in any situation where a BankAccount object would be expected. (This would be true even if kaylasAccount were instantiated as a CheckingAccount, but using the explicit child as parent syntax is most helpful when we want to declare objects in bulk.)