# "class" as a thing that can be inherited

**URL:** <https://forums.swift.org/t/class-as-a-thing-that-can-be-inherited/43880>\
**Category:** Using Swift\
**Created:** [January 15, 2021, 6:18pm UTC](https://forums.swift.org/t/class-as-a-thing-that-can-be-inherited/43880 "2021-01-15T18:18:55Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![phoneyDev](https://avatars.discourse-cdn.com/v4/letter/p/49beb7/32.png) [@phoneyDev](https://forums.swift.org/u/phoneyDev)\
**Post date:** [January 15, 2021, 11:20pm UTC](https://forums.swift.org/t/class-as-a-thing-that-can-be-inherited/43880/5 "2021-01-15T23:20:36Z")

</div>

It's been deprecated, or something.

> [@Class-only protocols, class vs AnyObject?](https://forums.swift.org/t/class-only-protocols-class-vs-anyobject/11507):
>
> What is the difference, if any, btw P and Q here: protocol P : class { ... } protocol Q : AnyObject { ... } If no difference, which should be preferred? (I got the impression that the class version was meant to be deprecated, but it still compiles without warnings as of Xcode 9.3)

---

_[View the full topic](https://forums.swift.org/t/class-as-a-thing-that-can-be-inherited/43880)._
