Gen-AI Developer Classroom notes 13/Mar/2025

Method types in classes

  • Classes have three types of methods
    • instance methods: These can modify instance variables (self.age = age). They generally have self has first argument
    • class methods: These can modify class variables. class variables are shared across all instances.
    • static methods: These methods have nothing to do with class or instance methods or members
  • Refer Here for the example we have done

String methods

By continuous learner

enthusiastic technology learner

Leave a Reply

Discover more from Direct AI Powered By Quality Thought

Subscribe now to keep reading and get access to the full archive.

Continue reading