# Protocol declared in class

**URL:** <https://forums.swift.org/t/protocol-declared-in-class/37782>\
**Category:** Discussion\
**Created:** [June 22, 2020, 3:36am UTC](https://forums.swift.org/t/protocol-declared-in-class/37782 "2020-06-22T03:36:40Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![Tino](https://sea2.discourse-cdn.com/swift/user_avatar/forums.swift.org/tino/32/1073_2.png) [@Tino](https://forums.swift.org/u/Tino)\
**Post date:** [June 23, 2020, 9:47am UTC](https://forums.swift.org/t/protocol-declared-in-class/37782/4 "2020-06-23T09:47:33Z")

</div>

It's also not possible to have a protocol and a class/struct share a common name because of the different (compared with Objective-C; guess this sentence can be confusing, because Swift has no difference ;-) syntax...

---

_[View the full topic](https://forums.swift.org/t/protocol-declared-in-class/37782)._
