Question: what is nsobject in swift 4?
Answer: NSObject is the base class for most ObjC objects. In Swift you would inherit from it if you want your Swift object to be an ObjC object (with all the advantages and drawbacks that implies), but don't have a more specific ObjC object in mind.