Hi all,
I got a problem reading Head First C#. I just want you to explain me one important matter. I have 4 interfaces (I showed it in the picture) and two classes. I have an exercise (I attached to my post). I just don't know how to understand the example with "as". The Bee[3] is it an IWorker object or is it a NectarStinger object and why? Does the word "as" mean that we have IWorker object or does it mean that we have a NectarStinger object?
Please let me know if you can understand what I mean.

Basically as is a noexception way of casting one object to another type. This article has a pretty good explanation.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.