Ok so I have a class called Dog() which takes two parameters, a string and an integer. This class has a method called bark(), which prints a string depending on the intege
About your second question:"Why do I have to start with Dog[] ... new Dog[5]?"
Its because of same logic you have to put Dog dog=new Dog(); ----(1) That's why Dog[] dogArray=new Dog[5]; ---(2)
If you don't have problem with the first one then why crib about the second one.