Dear Friends ,
in java the creation of object of class hello is following
hello h = new hello();
here hello() means call explictely constructor calling mechnism
but in c++
we write only helllo h;
and object is created and implictely constructor is callling
my question is this why java is call explictely constructor mechnism is accepted
why we do not write only hello h; and after that implictely constructor is called
what is meaning of explictely constructor mechnism in java ?
why is required ?
sanjay
in java the creation of object of class hello is following
hello h = new hello();
here hello() means call explictely constructor calling mechnism
but in c++
we write only helllo h;
and object is created and implictely constructor is callling
my question is this why java is call explictely constructor mechnism is accepted
why we do not write only hello h; and after that implictely constructor is called
what is meaning of explictely constructor mechnism in java ?
why is required ?
sanjay
Comment