score:0

Accepted answer

if you do not like movie.information in your code you just need to import movie._.

import movie._
def getmovieinformation (name: string) : information = {
   //call internal api and get the value based on the key from   movie.qualityfeedback
   //now just return information
}

classes defined inside objects in scala are almost the same as static classes inside classes in java. you would have the extra movie. in both languages unless you import (or static import in java).


Related Query

More Query from same tag