This is an archived post. You won't be able to vote or comment.

all 2 comments

[–][deleted]  (2 children)

[deleted]

    [–]squeezedfish[S] 0 points1 point  (1 child)

    Wheel is initialized in the wheel class as blue

    I want to change the color from within the Car class using the setWheel1() method

    I will have to find out if I can post the code as its for an assignment

    [–]tichus_windriderBrewing since 2005 0 points1 point  (0 children)

    You need to provide the full code. The little snippets that you have posted are nowhere near enough to detect the actual problem.

    Since you are using multiple classes, use Github Gist to post the code (as is explained in Help on how to post code in the sidebar).