c++ - How to use Initializer list in objective C -
i have worked on c++, there used initializer list below initialize constructor of base class.
derived::derived(int x):base(x) { cout << "b's constructor called"; }
how acheive same action in objective c. how pass value base (super) class while initlizing. possible?
thanx.
we use [super init];
initialize super classes. require.
Comments
Post a Comment