---
title: "Operations on Object"
url: https://docs.zeroc.com/ice/3.8/slice/operations-on-object
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

Parts of this page are for some programming languages only, and name them. For one language's text alone, see [C++](https://docs.zeroc.com/ice/3.8/slice/operations-on-object/cpp.md), [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), and [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` ([C++](https://code.zeroc.com/ice/3.8/api/cpp/classIce_1_1ObjectPrx_a2f2f9a3d3f10a8451912444ce0458429.html#a2f2f9a3d3f10a8451912444ce0458429), [C#](https://code.zeroc.com/ice/3.8/api/csharp/api/Ice.ObjectPrx.html#Ice_ObjectPrx_ice_ping_), [Java](https://code.zeroc.com/ice/3.8/api/java/com.zeroc.ice/com/zeroc/Ice/ObjectPrx.html#ice_ping()), [JavaScript](https://code.zeroc.com/ice/3.8/api/javascript/Ice/ObjectPrx.html#ice_ping), [Python](https://code.zeroc.com/ice/3.8/api/python/Ice.ObjectPrx.html#Ice.ObjectPrx.ice_ping), [Ruby](https://code.zeroc.com/ice/3.8/api/ruby/Ice/ObjectPrx_mixin.html#ice_ping-instance_method), and [Swift](https://code.zeroc.com/ice/3.8/api/swift/documentation/ice/objectprx/ice_ping(context:))) | Tests whether the target object can be reached. |
| `ice_isA` ([C++](https://code.zeroc.com/ice/3.8/api/cpp/classIce_1_1ObjectPrx_a2f0fb697d2599a6c7683b69062fae9d7.html#a2f0fb697d2599a6c7683b69062fae9d7), [C#](https://code.zeroc.com/ice/3.8/api/csharp/api/Ice.ObjectPrx.html#Ice_ObjectPrx_ice_isA_), [Java](https://code.zeroc.com/ice/3.8/api/java/com.zeroc.ice/com/zeroc/Ice/ObjectPrx.html#ice_isA(java.lang.String)), [JavaScript](https://code.zeroc.com/ice/3.8/api/javascript/Ice/ObjectPrx.html#ice_isa), [Python](https://code.zeroc.com/ice/3.8/api/python/Ice.ObjectPrx.html#Ice.ObjectPrx.ice_isA), [Ruby](https://code.zeroc.com/ice/3.8/api/ruby/Ice/ObjectPrx_mixin.html#ice_isA-instance_method), and [Swift](https://code.zeroc.com/ice/3.8/api/swift/documentation/ice/objectprx/ice_isa(id:context:))) | 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` ([C++](https://code.zeroc.com/ice/3.8/api/cpp/classIce_1_1ObjectPrx_abb0b3bb51004c4e51833adc4fa967501.html#abb0b3bb51004c4e51833adc4fa967501), [C#](https://code.zeroc.com/ice/3.8/api/csharp/api/Ice.ObjectPrx.html#Ice_ObjectPrx_ice_id_), [Java](https://code.zeroc.com/ice/3.8/api/java/com.zeroc.ice/com/zeroc/Ice/ObjectPrx.html#ice_id()), [JavaScript](https://code.zeroc.com/ice/3.8/api/javascript/Ice/ObjectPrx.html#ice_id), [Python](https://code.zeroc.com/ice/3.8/api/python/Ice.ObjectPrx.html#Ice.ObjectPrx.ice_id), [Ruby](https://code.zeroc.com/ice/3.8/api/ruby/Ice/ObjectPrx_mixin.html#ice_id-instance_method), and [Swift](https://code.zeroc.com/ice/3.8/api/swift/documentation/ice/objectprx/ice_id(context:))) | Returns the type ID of the most-derived Slice interface the target object implements. |
| `ice_ids` ([C++](https://code.zeroc.com/ice/3.8/api/cpp/classIce_1_1ObjectPrx_a0e2879146cbc6b9520c4462b1454bba4.html#a0e2879146cbc6b9520c4462b1454bba4), [C#](https://code.zeroc.com/ice/3.8/api/csharp/api/Ice.ObjectPrx.html#Ice_ObjectPrx_ice_ids_), [Java](https://code.zeroc.com/ice/3.8/api/java/com.zeroc.ice/com/zeroc/Ice/ObjectPrx.html#ice_ids()), [JavaScript](https://code.zeroc.com/ice/3.8/api/javascript/Ice/ObjectPrx.html#ice_ids), [Python](https://code.zeroc.com/ice/3.8/api/python/Ice.ObjectPrx.html#Ice.ObjectPrx.ice_ids), [Ruby](https://code.zeroc.com/ice/3.8/api/ruby/Ice/ObjectPrx_mixin.html#ice_ids-instance_method), and [Swift](https://code.zeroc.com/ice/3.8/api/swift/documentation/ice/objectprx/ice_ids(context:))) | 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)
