3_Objective-C Polymorphism

The word polymorphism means having many forms.

Objective-C polymorphism means

That a call to a member function will cause a different function to be executed depending on the type of object that invokes the function.

Syntax

@interface name_1: NSObject
@interface name_2: name_1

Example

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Blog at WordPress.com.

Up ↑

%d bloggers like this: