QuestionQ38Verified/Advanced Object-Oriented ProgrammingCopy linkReport a problemAsk AstroTutorSave questionWhat is a method?AIt is a function built into a class that is executed on behalf of the class or an object.BIt is another name for a function - the only difference is that a method cannot be abstract.CIt is a callable variable that is specific only to objects.DIt is another name for a function - the only difference is that a method always returns a value.Show AnswerAnswerExplanationA method is a function defined within and associated with a class or its objects. Methods can operate on an instance or on the class itself, and they may be abstract or return no value.Show comments0Show commentsCommunity DiscussionNo comments yet. Be the first to start the discussion!
Community Discussion