Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
instance variable class var
Language:
Ada
Assembly
Bash
C#
C++ (gcc)
C++ (clang)
C++ (vc++)
C (gcc)
C (clang)
C (vc)
Client Side
Clojure
Common Lisp
D
Elixir
Erlang
F#
Fortran
Go
Haskell
Java
Javascript
Kotlin
Lua
MySql
Node.js
Ocaml
Octave
Objective-C
Oracle
Pascal
Perl
Php
PostgreSQL
Prolog
Python
Python 3
R
Rust
Ruby
Scala
Scheme
Sql Server
Swift
Tcl
Visual Basic
Layout:
Vertical
Horizontal
#python 3.5.2 class tsec: no_of_dept=3 _no_ofproff=33 __no_ofstud=600 def __init__(self): self.no_of_dept="majnu bhai ke haath me" class chemi(tsec): no_of_dept=6 def __init__(self): #self.no_of_dept="uday bhai ke haath me" chemi_proff=["monca","himami","pandey","gopu"] info=chemi() class comps(chemi): comps_proff=["desi","videshi","meena","saleena"] cm=comps() print(cm.no_of_dept) print(info._no_ofproff) print(cm._tsec__no_ofstud) print(cm.no_of_dept)
[
+
]
Show input
Absolute running time: 0.1 sec, cpu time: 0.06 sec, memory peak: 6 Mb, absolute service time: 0,11 sec
edit mode
|
history
|
discussion
6 33 600 6