I'm trying to find out weather I can do this or not. I have a class called Template. and I want to extend that classes functionality in another file, but I don't want to change the name.

Do I declare it as

```
class template extends template
{
   // code here
   function foo()
   {

   }
}

```

or do I just declare it like this?

```
class template
{
   // write function
   function foo()
   {

   }
}

```