Demo entry 6345730



Submitted by anonymous on Feb 05, 2017 at 12:30
Language: Swift. Code size: 318 Bytes.

	class Person {
	var delegate:PersonDelegate?

	// you can use the var delegate to call any function that is provided in protocol
	func makeCall() {
		// First Method:

		// Second Method:
		guard let d = delegate else { return } // if nil, return


This snippet took 0.00 seconds to highlight.

Back to the Entry List or Home.

Delete this entry (admin only).