Well I have a scala class Foo.scala
containing these two elements,
First One,
case class Foo(
.
.
.
)
And secondly,
object Foo{
.
.
.
}
Now when I import the Foo in some other file, I want to use the case class not the Object, but when I import the file, object instance is returned in Foo<= this is the object,(I needed to do Foo.apply, Foo.tupled)
Is there anyway I can get the Foo to act as the case class then an object.