I'm learning C++ (coming from iOS) and I want to understand the pointer / reference usage.

Is is correct to work with references on objects when they are deleted? Or will the referenced variable also get deleted?

**Example:**

```
Class Foo {
}

Class Faa{
   asyncCall(&Foo)
}

```

1.

```
// ...
Foo *foo = new Foo();
faa->(asyncCall(&foo);
delete foo;
// ...

```

2.

```
// ...
Foo *foo = new Foo();
Foo& refFoo = foo;
delete foo;

// do something with refFoo

```