Question: I am new in android. I need to call RestFull web services from my app.
Can i call RestFull web services from android service? if yes then how it implement?

Answer: 
You can define an apply method in the companion object:

```
case class Person(name: String, phone: String, normalizedPhone: String)

object Person {
  def apply(name: String, phone: String): Person =  Person(name, phone, "xxx" + phone)
}

```

Then, in the repl:

```
scala> Person("name", "phone")
res3: Person = Person(name,phone,xxxphone)

```
You could add methods to the case class that would contain the transforming logic from existing fields. For example:

```
case class Person(name: String, phone: String) {
  def normalizedPhone = "+40" + phone
}

```

Then you can use the method just as if it was a field:

```
val p1 = new Person("Joe", "7234")
println(p1.normalizedPhone) // +407234

```