Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Overloading Constructors  RSS feed

 
Mark Henryson
Ranch Hand
Posts: 200
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi,

Why the below coding gives error>



Error Message
---------------
 
Georgy Bolyuba
Ranch Hand
Posts: 162
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi

May be you forgot something? Something related to class Date?

I cannot see from your code where you get your Date class. And you?
 
Paul Sturrock
Bartender
Posts: 10336
Eclipse IDE Hibernate Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Your code has no import statements. Do you import java.util.Date (or java.sql.Date, whichever you are using) into this class?
 
Anand Karia
Ranch Hand
Posts: 156
Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Missing:

i.e.

import java.util.*;

or

import java.util.*;
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!