Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

constructer

 
seema chhetri
Ranch Hand
Posts: 43
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,

Please let me know that how i can call a default constructer in a parametrised construter.



Thanks
 
Maneesh Godbole
Saloon Keeper
Posts: 11021
12
Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How difficult is it to try it out yourself and find out? All you need to do is add one line
 
seema chhetri
Ranch Hand
Posts: 43
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hello ,

i want to know as i made one class in which there is a default constructer b4 there was a parametrised constructer.but i removed the parameter and i maked this class a singleton class with default constructer . and in the constructer of another class we have passed the parameter in the object of this class . now in that parameter there is two string . like







Thanks
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic