• 0 Posts
  • 78 Comments
Joined 9 months ago
cake
Cake day: January 12th, 2024

help-circle











  • Exaggeration is a rhetorical and literary device that involves stating something in a way that amplifies or overstresses its characteristics, often to create a more dramatic or humorous effect. It involves making a situation, object, or quality seem more significant, intense, or extreme than it actually is. This can be used for various purposes, such as emphasizing a point, generating humor, or engaging an audience.
    
    For example, saying "I’m so hungry I could eat a horse" is an exaggeration. The speaker does not literally mean they could eat a horse; rather, they're emphasizing how very hungry they feel. Exaggerations are often found in storytelling, advertising, and everyday language.
    



  • Inheritance established “is a” relationship between classes.

    class Turtle;  
    class TigerTurtle is a Turtle (but better);  
    class BossTurtle is a Turtle (but better);  
    

    Underlying classes hold an inner object to the super class, everything from Turtle will be in TigerTurtle and BossTurtle.

    In some languages that is configurable with public, private, protected keywords.

    Relatedly, there’s also composition, which establishes a “has a” relationship:

    class TurtleTail;
    class Turtle:
      var tail: TurtleTail; (has a tail);
    

    Since Turtle is NOT a tail, but a whole animal, turtle should not inherit TurtleTail. But it HAS a tail, thus we add turtle tail as a property.