What's the difference between class methods and instance methods in Swift?
protocol NoteProtocol { var body: NSString? { get set } var createdAt: NSDate? { get set } var entityId: NSString? { get set } var modifiedAt: NSDate? { get set } var title: NSString? { get set } // class methods class func insertNewNoteInManagedObjectContext(managedObjectContext: NSManagedObjectContext!) -> NoteProtocol class func noteFromNoteEntity(noteEntity: NSManagedObject) -> NoteProtocol // instance methods func update(#title: String, body: String) func deleteInManagedObjectContext(managedObjectContext: NSManagedObjectContext!) } Hi This is a piece of code I found on GitHub. In this