Get the latest tech news

Interfaces and Traits in C


Implemented with structs and function pointers.

None

Get the Android app

Or read this on Hacker News

Read more on:

Photo of traits

traits

Photo of interfaces

interfaces

Related news:

News photo

There's Now a Third Way to Inherit Traits That Isn’t Your DNA or RNA, Scientists Say

News photo

Our interfaces have lost their senses

News photo

Go Data Structures: Interfaces (2009)