Okay. let me see if I get this

"Dog" is an object or class.

"d"
"cobi"
"dog2"
These are all instances of this object. Kind of like cookie cut outs of a dog.

Code:
public class Dog 
//sets class/object name
{
	public String name;//initialize variable name
		public static void main(String args[]) //main method deffinition
		{
      			Dog d = new Dog("Snoop");
			Dog cobi = new Dog("Cobi");
			Dog dog2 = new Dog("Fido");


//created new classes or instances of "Dog" and in
	public Dog(String name) 
	{
//we said
 
Dog whatever = new Dog("Some_name");
                        ^
                        Here is where we get the name from.
_________________________
My New site OpenEyes