QuestionQ12Verified/Advanced Object-Oriented ProgrammingCopy linkReport a problemAsk AstroTutorSave questionWhen are instance variables created?ADuring an object’s initialization or later.BDuring an object’s initialization only.CAt any moment of the instance's life.DUpon the first read access to the instance variable.Show AnswerAnswerExplanationAn instance variable is created for an object when code assigns a value to it. That assignment may occur during object initialization or later in the object’s lifetime.Show comments0Show commentsCommunity DiscussionNo comments yet. Be the first to start the discussion!
Community Discussion