Mega Code Archive
Search
.Net
ASP .Net
ASP .Net Tutorial
C#
C# Book
C# by API
C# Tutorial
VB.Net
VB.Net by API
VB.Net Tutorial
Visual C++ .Net
VisualBasic Script
Java
Java
Java Book
Java by API
Java Tutorial
Script
Flash ActionScript
Flex
JavaScript DHTML
JavaScript Reference
JavaScript Tutorial
Database
MSSQL
MSSQL Tutorial
MySQL
MySQL Tutorial
Oracle PLSQL
Oracle PLSQL Tutorial
PostgreSQL
Languages
Android
C
C Tutorial
C++
C++ Tutorial
Delphi
Perl
PHP
Python
Python Tutorial
Ruby
Silverlight
Office
MSOfficeExcel 2007 Tutorial
MSOfficePowerPoint 2007 Tutorial
MSOfficeWord 2007 Tutorial
Data
XML
XML Tutorial
Python
Class 73 codes
Home
Python
Class
1 __getattr__ demo
2 __getattr__ in a class Demo
3 __setattr__ and __dict__
4 __str__ , __repr__
5 A class may define a special method named __init__()
6 A Simple Logger Class
7 A very simple class definition
8 A very simple class with a constructor
9 Add a class member variable on the fly
10 Add a member variable to a class on the fly
11 Class
12 Class constructor parameter
13 Class destructor
14 Class extending dict type
15 Class inheritance
16 Class inherited
17 Class instance value setting
18 Class instantiation uses function notation
19 Class member function
20 Class method
21 Class method Demo
22 Class operator add
23 Class Time with customized attribute access
24 Class Time with properties
25 Constructors Demo
26 Creating and accessing object attributes
27 Define a class
28 Define abstract class Animal
29 Define class object
30 Define function to change member data
31 Define operator for class
32 Definition and test function for class Circle which is based on Point class
33 Definition and test function for class Point
34 Demonstrates a basic class and object
35 Demonstrates class attributes and static methods
36 Demonstrates get and set methods and properties
37 Demonstrates private variables and methods
38 Derived class inheriting from a base class
39 Empty Class constructor
40 Fill the fields of the record
41 Function defined outside the class
42 Generates a class attribute
43 Getter and Setter Methods
44 How to call __getitem__
45 Implement class add (+) operator
46 Inherited method
47 Inheriting from multiple superclasses
48 Instance Objects
49 Iterator object
50 Make two instance objects and each has its own data
51 Methods uses method attributes of the self argument
52 Multiple Inheritance
53 MyList
54 NameTag class
55 Output attributes
56 Override class __str__ function
57 Override predefined function
58 Overriding built-in __str__() method
59 Polymorphism
60 Print out class tree
61 Provide custom type infomation
62 Reference class member variable directly
63 Roman Number
64 Simple class with slots
65 String Conversion
66 Use __class__, __bases__ and __dict__ for sub and super class
67 Use Inheritance to add more features to a class
68 User-Defined Classes
69 Virtual function
70 Virtual function in derived class is called
71 Virtual function in Python
72 Virtual function in Python class
73 Virtual function in two base class