1. Object is like a static class in Java but better. 2. Its not instantionation in that sense, so by proxy not "creation" 3. Scala objects have an apply method, of which, MyObject() is a shortcut to. Think of it as being the same as MyObject.apply(...) etc. 4. It is indeed a subtype similar to subclassing in Java.
Does that help? Cheers, Tim On 29/04/2009 07:07, "pravin karne" <pravinka...@gmail.com> wrote: > 1. how object extends class in scala.? > 2. are we going to create object of SessionVar class? > 3. are we calling constructor of given class? > 4. is it similar to java class which extends other class ,and then create > object of subclass? > > I am beginner to scala and lift. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Lift" group. To post to this group, send email to liftweb@googlegroups.com To unsubscribe from this group, send email to liftweb+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/liftweb?hl=en -~----------~----~----~----~------~----~------~--~---