c# - What is a partial class? -


what , how can used in c#.
can use same concept in python/perl?

the c# partial class has been explained here i'll cover python part. can use multiple inheritance elegantly distribute definition of class.

class a_part1:     def m1(self):         print "m1"  class a_part2:     def m2(self):         print "m2"  class a(a_part1, a_part2):     pass  = a() a.m1() a.m2() 

Comments

Popular posts from this blog

windows - Why does Vista not allow creation of shortcuts to "Programs" on a NonAdmin account? Not supposed to install apps from NonAdmin account? -

c++ - How do I get a multi line tooltip in MFC -

unit testing - How to mock PreferenceManager in Android? -