From: Vellingiri Arul Date: 2007-09-26T15:06:12+09:00 Subject: difference between inheritance and mixin Hai friends, Can anybody can answer this question. what is the difference between inheritance and mixin. what is the use of mixin and what is the use of inheritance. Inheritance is we are deriving the superclass. for example,I did like this, cass A def B puts 'a and b' end end class C < A def D puts 'd' end end e=C.new e.B e.D The output should be like this, a and b d I know very vell about the inheritance,but both the cases we are using but Idon't about the mixin and difference two methods. by vellingiri -- Posted via http://www.ruby-forum.com/.