Wednesday, 28 August 2013

How to use Initializer list in objective C

How to use Initializer list in objective C

I have worked on c++, there we used initializer list like below to
initialize the constructor of base class.
Derived::Derived(int x):Base(x) {
cout << "B's Constructor called";
}
How to acheive the same action in objective C. Is it possible?
thanx.

No comments:

Post a Comment