- 1、本文档共9页,可阅读全部内容。
- 2、有哪些信誉好的足球投注网站(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
- 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
Symbian面试 答案
What version of Symbian do you use in the development? What SDK do you use in your development?
Symbian 8.0 SDK 2.0 (symbian 7 8, 2nd)
Symbian 9.2 SDK 3.0 (symbian 9, 3rd)
What is the difference between S60 2nd version and 3rd version?
3.0 2.0
程序 exe app
图标 失量图(svg), bmp
安全(capability) 每个程序都必须授予一定权限,才能访问特定的API
2.0 entry point function
GLDEF_C TInt E32Dll(TDllReason)
{
return KErrNone;
}
What IDE do you use to develop Symbian application?
Vc6, Codewarrior, Carbide, .net
Describe the Symbian code convention.
Date member: use prefix i-, should be private;
Arguments: prefix a-;
Variables start with lower case, Function start with capitals;
Setter function: SetThing(aThing);
Getter function: myThing = Thing();(return it)
GetThing(myThing);(pass it by reference)
Variables includeing arguments: for uses-a and * for has-a
Trailing L,C for function that cause exception
Trailing D functions that delete object
Describe the difference between T-, C-, and R- class.
T Class:
No destructor
No explicit assigment
No copy constructor operator, a bitwise copy is sufficient for these.
C Class
Derive from CBase
CBase has a virtual destructor
Must be allocated on the heap
A private copy constructor and assignment operator. This is a common strategy used to prevent a client from making accidental shallow copies of, or assignments to, objects of a class(if use, must be overload constructor or assignments)
Pass by pointer of reference ,not by value
Overloads operator “new” to zero-initialize object when it is first allocated on the heap. Zero initialization will not occur for stack objects because allocation the stack does not use operator new.
T类TDesc、TPoint..T类没有析构函数。它们的行为类似于内置类型。这是为什么所有内置类型的typedef都以T开头的原因。T类可以作为自动变量而分配、作为其他类的成员而分配,或位于堆上C类CActive、CBase..从CBase派生的所有类。C类总是分配在默认堆上。分配对象时,CBase的operator new()将所有成员数据初始化为零。CBase也包括虚析构函数,因此通过对CBase*指针调用delete,正确析构它指向的任何对象R类RFile、RTimer..拥有资源而不是位于默认堆上的所有类。通常分配为成员变量或自动变量;在少数情况,可分配在堆上。大部分R类使用Close()来释放
文档评论(0)