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
-
string examples and Refer Here here for official documentation
-
String formatting
Refer Here for samples done
