i suppose actually here they have used halter(in 1) like any basic variable declarationthis is also a derived declaration of type halter class.My doublt is that just by declarig "private halter myHalter;" weather an object is created .What is (LeadRope rope) (2).is LeadRope a class name or it is an object for class named "LeadRope).please do clarify my doubts.
no, no object is created until you see the word "new" somewhere (with a few exceptions).
the line "public void tie(LeadRope aRope)" is a method declaration. you are saying "give me a method that anyone can call (public), that doesn't return any value back to the caller (void), and name it "tie". the caller of the method must pass it a reference to LeadRope object, and within this method, that passed in reference will be called "aRope".
There are only two hard things in computer science: cache invalidation, naming things, and off-by-one errors