---
title: "Operations on Object"
url: https://docs.zeroc.com/ice/3.8/slice/operations-on-object
language: cpp
docs_index: https://docs.zeroc.com/llms.txt
---

> For an index of every page, see [llms.txt](https://docs.zeroc.com/llms.txt).

# Operations on Object

Programming language: C++. Other languages: [C#](https://docs.zeroc.com/ice/3.8/slice/operations-on-object/csharp.md), [Java](https://docs.zeroc.com/ice/3.8/slice/operations-on-object/java.md), [JavaScript](https://docs.zeroc.com/ice/3.8/slice/operations-on-object/js.md), [MATLAB](https://docs.zeroc.com/ice/3.8/slice/operations-on-object/matlab.md), [PHP](https://docs.zeroc.com/ice/3.8/slice/operations-on-object/php.md), [Python](https://docs.zeroc.com/ice/3.8/slice/operations-on-object/python.md), [Ruby](https://docs.zeroc.com/ice/3.8/slice/operations-on-object/ruby.md), [Swift](https://docs.zeroc.com/ice/3.8/slice/operations-on-object/swift.md).

Every Slice interface derives from `Object` ([Implicit Inheritance from Object](https://docs.zeroc.com/ice/3.8/slice/interfaces/interface-inheritance.md#implicit-inheritance-from-object)). `Object` is a Slice keyword, so you cannot define it in Slice; this is what its definition would look like if you could:

```slice
sequence<string> StringSeq;

interface Object // pseudo-Slice: Object is a keyword
{
    idempotent void ice_ping();
    idempotent bool ice_isA(string typeId);
    idempotent string ice_id();
    idempotent StringSeq ice_ids();
}
```

The four operations are standard Slice operations, mapped with the standard mapping rules. You call them on any proxy, like the operations of your own interfaces:

| Operation | Description |
| --- | --- |
| [`ice_ping`](https://code.zeroc.com/ice/3.8/api/cpp/classIce_1_1ObjectPrx_a2f2f9a3d3f10a8451912444ce0458429.html#a2f2f9a3d3f10a8451912444ce0458429) | Tests whether the target object can be reached. |
| [`ice_isA`](https://code.zeroc.com/ice/3.8/api/cpp/classIce_1_1ObjectPrx_a2f0fb697d2599a6c7683b69062fae9d7.html#a2f0fb697d2599a6c7683b69062fae9d7) | Tests whether the target object implements the Slice interface with the given [type ID](https://docs.zeroc.com/ice/3.8/slice/type-ids.md); `checkedCast` calls it. |
| [`ice_id`](https://code.zeroc.com/ice/3.8/api/cpp/classIce_1_1ObjectPrx_abb0b3bb51004c4e51833adc4fa967501.html#abb0b3bb51004c4e51833adc4fa967501) | Returns the type ID of the most-derived Slice interface the target object implements. |
| [`ice_ids`](https://code.zeroc.com/ice/3.8/api/cpp/classIce_1_1ObjectPrx_a0e2879146cbc6b9520c4462b1454bba4.html#a0e2879146cbc6b9520c4462b1454bba4) | Returns the type IDs of all the Slice interfaces the target object implements, in alphabetical order. |

## See Also

- [Type IDs](https://docs.zeroc.com/ice/3.8/slice/type-ids.md)
- [Interface Inheritance](https://docs.zeroc.com/ice/3.8/slice/interfaces/interface-inheritance.md)
