目标c中的init工作? [英] init work in objective c ?

查看:103
本文介绍了目标c中的init工作?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好朋友..

hello friends ..

Fraction *f=[[Fraction alloc]init];


在上面的代码中,init的作用是什么?


In above code , what init do ??
What dose initialization do for the objects ?

推荐答案

您可以在此处找到一些信息 [ ^ ](或在其他任何Objective-C教程中),请查看"创建对象"部分.
You may find some info here[^] (or in any other Objective-C tutorial), check out the "Creating Objects" section.


这篇关于目标c中的init工作?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆