Site menu

CodeCook.io

  • Languages
    • C
    • C++
    • CSS
    • Git
    • HTML
    • Java
    • JavaScript
    • jQuery
    • PHP
    • Python
    • Ruby
    • Scala
  • basic
  • class
  • object

Python - Class definition

General class definition

0
513
  • Share on Facebook
  • Share on Google+
  • Share on Twitter

Class

class {{name}}:
  {{body}}
python

Notes

last update: Oct. 27, 2014

Advertisement

This project is hosted on DigitalOcean, try it and support us

Related concept

  • Class function
  • Object inner function
  • Hello world
  • Object instantiation
  • Single comment
  • Singleton - one object instance for class

Other language

  • C++
  • Java
  • PHP
  • Javascript ES6

Random task

  • Increment variable by one
  • Prepend item to array
  • Run docker daemon container
  • Toggle DOM element class
  • Git list tags that contain commit
  • Blog
  • About
  • License