Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

use of this() function

 
Rajesh Veluchamy
Ranch Hand
Posts: 47
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
1.what is the use of "this();" in EmailAct constructor

2.should "this();" function call be first line only?

 
Jesper de Jong
Java Cowboy
Saloon Keeper
Posts: 15485
43
Android IntelliJ IDE Java Scala Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It calls the constructor of the class EmailAct that takes no arguments. Note that the code above will not compile, because class EmailAct doesn't have a constructor without arguments. I suspect that you copied and pasted part of the code and left something out.
 
Rajesh Veluchamy
Ranch Hand
Posts: 47
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
yeah,

Thanks for your Kind your reply
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic