QuestionQ25Verified/Advanced Object-Oriented ProgrammingCopy linkReport a problemAsk AstroTutorSave questionWhich object-oriented programming pillar does the following code snippet represent? ASerializationBInheritanceCEncapsulationDPolymorphismShow AnswerAnswerExplanationPolymorphism allows the same operation, such as calling run(), to produce different behavior depending on the object’s type. Here, classes A and C provide distinct implementations of run().Show comments1Show commentsCommunity DiscussionNo comments yet. Be the first to start the discussion!
Community Discussion