From: Ankush Ganatra Date: 2011-11-07T12:16:11+09:00 Subject: Newbie:: Understand Constructor Flow. --562430024-886460348-1320635767=:61570 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Hi Guys=0A=0AI am a little confused and need some help. I am a newbie for R= uby but i think i understand Object Oriented programming a little bit so i = got confused here. =0A=0AI have got 2 classes here =0A=0A1. CEmployee=0A=0A= class CEmployee=0A=A0=A0=A0 def initialize()=0A=A0=A0=A0 =A0=A0 =A0puts "in= side CEmployee"=0A=A0=A0=A0 end=A0=A0 =A0=0Aend=0A=0A2. CManager=0A=0Aclass= CManager < CEmployee=0A=A0=A0=A0 def initialize()=0A=A0=A0=A0 =A0=A0=A0 pu= ts "inside CManager"=0A=A0=A0=A0 end=0Aend=0A=0ANow if i create an Object o= f CManager class (unlike other languages like C++ ) the constructor of it g= ets called but not the base class "Until i use the super keyword". =0A=0A= =0A=A0=A0=A0 objManager =3D CManager.new=0A=0ACan someone please help me he= re? And even if the this is supposed to be working like this, isn't it some= thing different from the Object Oriented Concept which says base class cons= tructor always gets called first? --562430024-886460348-1320635767=:61570--