作者:Amy刘晓玲 | 来源:互联网 | 2023-05-18 12:53
IamActionScript3Flexprogrammer,itisthefirstlanguageIlearned.我是ActionScript3Flex程序员
I am ActionScript 3/Flex programmer, it is the first language I learned.
我是ActionScript 3 / Flex程序员,它是我学过的第一门语言。
I want to learn either Java or C++.
Would one of these be easier to learn based on my current knowledge?
我想学习Java或C ++。根据我目前的知识,其中一个更容易学习吗?
8 个解决方案
Well, AS3 more closely resembles Javascript - they both follow the ECMAScript specification.
那么,AS3更像Javascript - 它们都遵循ECMAScript规范。
But to answer your question, I would say learning Java will be more beneficial and easier for you. Java supports Interfaces, and single inheritance, like Flex, whereas C++ supports multiple inheritance and lacks a formal notion of Interfaces. Java and Flex both manage memory for you, whereas C++ forces you to manage your own memory. Both Java and Flex have large helper libraries out of the box, and both have native String types, whereas C++ forces you to find a library to use and doesn't support native String types.
但是要回答你的问题,我会说学习Java对你来说会更有益,也更容易。 Java支持接口和单继承,如Flex,而C ++支持多继承,缺乏接口的正式概念。 Java和Flex都为您管理内存,而C ++则强制您管理自己的内存。 Java和Flex都具有开箱即用的大型辅助库,并且都具有本机String类型,而C ++强制您查找要使用的库,并且不支持本机String类型。
This may be my own bias, but it also seems more likely that you'll find a job that is looking for a Flex/Java developer, rather than a Flex/C++ developer. Java and Flex seem to work well together, with Flex as a front end and Java as a middle and back end.
这可能是我自己的偏见,但你似乎更有可能找到一份寻找Flex / Java开发人员的工作,而不是Flex / C ++开发人员。 Java和Flex似乎可以很好地协同工作,Flex作为前端,Java作为中间和后端。