• Post Reply Bookmark Topic Watch Topic
  • New Topic

Working of second constructor of Data Class

 
Anurag Mishra
Ranch Hand
Posts: 133
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I could not able to understand the working of this constructor
of Data class.According to me i think so that this constructor
will be used as to create a copy of the database file called "db.db".
I could'nt able to get the exact use of this constructor.
Plz help me to find out the working of this constructor.
public Data(String dbname, FieldInfo[] fields) throws IOException {
.....
.....
....
......
}
Anurag Mishra
 
Raju, Gentle
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have read some where that in good olden day the assignment required usage of this constructor. I guess the present assignment can be done with out the usae of this. So I would not bother about it and I would leave as it is
 
Gravity is a harsh mistress. But this tiny ad is pretty easy to deal with:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!