← Questions

Write a usage example for an unfamiliar C++ class

0
AppleCodingLast asked Sep 2026

A coding interview question asked in Apple's technical phone screen, last asked Sep 2026. It tests c++, raii and move semantics.

This coding exercise is not an algorithm. You get a short C++ class you have never seen that owns a resource, and you write a small program that shows how the class is meant to be used.

Sign in to unlock this question

The full prompt, the worked answer and your own canvas or code with the AI tutor. New accounts get 5 credits: each one unlocks a question for good.

Where it's asked

  • Apple · Technical phone screen · Last asked Sep 2026

What it tests

c++ · raii · move semantics · code reading

Your code and the AI tutor open when you unlock this question.