The constructor sets out properties in to the class.
The Cat Class had three properties of _strCatName,_strCatAge,_strCatBreed and two methods of Meow and ChaseMouse.
The Dog Class had three properties of _strDogName,_strDogAge,_strDogBreed and three methods of GoWalkies and Bark.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment