I am new in Android.. so i dont know whether i am asking a stupid question or not.
Anyways here it is..

We know .. we instantiate a object in java like so:

```
Sagar sagarObject = new Sagar();

```

where Sagar is the class

but i just saw a code in android which is:

```
LayoutInfalter sagarsInflater = LayoutInflater.from(getContext());

```

where layoutInflater is the class.

Now i am not able to understand the above code. Shouldn't it be like:

```
LayoutInflater sagarsInflater = new LayoutInflater();

```

Why havent we instantiated that object? Why are using this "from" method wihout automatically withgout even instantiatining?

Another Example, 

```
View customView = sagarsInflater.inflate(R.layout.custom_row, parent, false);

```

Here also we didnt instantiate the object from the View class like:

```
View customView = new View();

```

Instead we used the method of sagarsInflater that we just made earlier.