/**************************************************************************************************
 * File name    : MyProtocol.h
 * Description  : Study how to create a protocol and use it.
 * Creator      : Frederick Hsu
 * Creation date: Wed.  07 Sep. 2016
 * Copyright(C) 2016    All rights reserved.
 *
 **************************************************************************************************/


#ifndef MYPROTOCOL_H
#define MYPROTOCOL_H

    #import <Foundation/Foundation.h>

    @protocol MyProtocol <NSObject>

        -(void)eat;

    @optional

        -(void)run;

    @end

#endif  /* MYPROTOCOL_H */
Define a protocol, study how to create and use the protocol in Objective-C programming.
Define a protocol, study how to create and use the protocol in Objective-C programming.
