change another classes varibles

if there two classes Dog, and Cat



In the constructor of Dog I have this line of code
BlackCat = new cat;

now I want to change BlackCat's varible called height(int)

how would I go about doing this?
Topic archived. No new replies allowed.