ImageVerifierCode 换一换
格式:DOC , 页数:17 ,大小:45.50KB ,
资源ID:8554093      下载积分:10 金币
验证码下载
登录下载
邮箱/手机:
图形码:
验证码: 获取验证码
温馨提示:
支付成功后,系统会自动生成账号(用户名为邮箱或者手机号,密码是验证码),方便下次登录下载和查询订单;
特别说明:
请自助下载,系统不会自动发送文件的哦; 如果您已付费,想二次下载,请登录后访问:我的下载记录
支付方式: 支付宝    微信支付   
验证码:   换一换

开通VIP
 

温馨提示:由于个人手机设置不同,如果发现不能下载,请复制以下地址【https://www.zixin.com.cn/docdown/8554093.html】到电脑端继续下载(重复下载【60天内】不扣币)。

已注册用户请登录:
账号:
密码:
验证码:   换一换
  忘记密码?
三方登录: 微信登录   QQ登录  

开通VIP折扣优惠下载文档

            查看会员权益                  [ 下载后找不到文档?]

填表反馈(24小时):  下载求助     关注领币    退款申请

开具发票请登录PC端进行申请。


权利声明

1、咨信平台为文档C2C交易模式,即用户上传的文档直接被用户下载,收益归上传人(含作者)所有;本站仅是提供信息存储空间和展示预览,仅对用户上传内容的表现方式做保护处理,对上载内容不做任何修改或编辑。所展示的作品文档包括内容和图片全部来源于网络用户和作者上传投稿,我们不确定上传用户享有完全著作权,根据《信息网络传播权保护条例》,如果侵犯了您的版权、权益或隐私,请联系我们,核实后会尽快下架及时删除,并可随时和客服了解处理情况,尊重保护知识产权我们共同努力。
2、文档的总页数、文档格式和文档大小以系统显示为准(内容中显示的页数不一定正确),网站客服只以系统显示的页数、文件格式、文档大小作为仲裁依据,个别因单元格分列造成显示页码不一将协商解决,平台无法对文档的真实性、完整性、权威性、准确性、专业性及其观点立场做任何保证或承诺,下载前须认真查看,确认无误后再购买,务必慎重购买;若有违法违纪将进行移交司法处理,若涉侵权平台将进行基本处罚并下架。
3、本站所有内容均由用户上传,付费前请自行鉴别,如您付费,意味着您已接受本站规则且自行承担风险,本站不进行额外附加服务,虚拟产品一经售出概不退款(未进行购买下载可退充值款),文档一经付费(服务费)、不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
4、如你看到网页展示的文档有www.zixin.com.cn水印,是因预览和防盗链等技术需要对页面进行转换压缩成图而已,我们并不对上传的文档进行任何编辑或修改,文档下载后都不会有水印标识(原文档上传前个别存留的除外),下载后原文更清晰;试题试卷类文档,如果标题没有明确说明有答案则都视为没有答案,请知晓;PPT和DOC文档可被视为“模板”,允许上传人保留章节、目录结构的情况下删减部份的内容;PDF文档不管是原文档转换或图片扫描而得,本站不作要求视为允许,下载前可先查看【教您几个在下载文档中可以更好的避免被坑】。
5、本文档所展示的图片、画像、字体、音乐的版权可能需版权方额外授权,请谨慎使用;网站提供的党政主题相关内容(国旗、国徽、党徽--等)目的在于配合国家政策宣传,仅限个人学习分享使用,禁止用于任何广告和商用目的。
6、文档遇到问题,请及时联系平台进行协调解决,联系【微信客服】、【QQ客服】,若有其他问题请点击或扫码反馈【服务填表】;文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“【版权申诉】”,意见反馈和侵权处理邮箱:1219186828@qq.com;也可以拔打客服电话:4009-655-100;投诉/维权电话:18658249818。

注意事项

本文(C#填空选择之类.doc)为本站上传会员【仙人****88】主动上传,咨信网仅是提供信息存储空间和展示预览,仅对用户上传内容的表现方式做保护处理,对上载内容不做任何修改或编辑。 若此文所含内容侵犯了您的版权或隐私,请立即通知咨信网(发送邮件至1219186828@qq.com、拔打电话4009-655-100或【 微信客服】、【 QQ客服】),核实后会尽快下架及时删除,并可随时和客服了解处理情况,尊重保护知识产权我们共同努力。
温馨提示:如果因为网速或其他原因下载失败请重新下载,重复下载【60天内】不扣币。 服务填表

C#填空选择之类.doc

1、Chapter one 1. C# is a simple, modern, object-oriented, and type-safe programming language. C# is an object-oriented language, but C# further includes support for component-oriented programming. C# has a unified type system. 2. The key organizational concepts in C# are programs, namespaces, types

2、 members, and assemblies. C# programs consist of one or more source files. Programs declare type, which contain members, and can be organized into namespaces. Classes and interfaces are examples of types. Files, methods, properties, events are examples of members. 3. Assemblies contain executabl

3、e code in the form of intermediate language (IL) instructions, and symbolic information in the form of metadata. Before it is execute, the IL code in an assembly is automatically converted to processor specific code by the Just-In-Time (JIT) compiler of .NET Common language Runtime. 4. An assembly

4、is a self-describing unit of functionality both code and metadata, there is no need to for # include directives and header files in C#. The public types members contained in a particular assembly are made available in a C# program simply by referencing that assembly when compiling. 5. There are two

5、 kinds of types in C#: value type and reference types. Variables of value types directly contain their data whereas variables of reference types store reference to their data, the latter being known as objects. With reference types, it is possible for two variables to reference the same object and t

6、hus possible foe operations on one variable to affect the object referenced by the other variable. With value types, the variables each have their own copy of the data, and it is not possible for operations on one to affect the other (except in the case of ref and out parameter variables). 6. C# pr

7、ograms use type declarations to create new types. A type declaration specifics the name and the members of the new type .Five of C#”s categories of types are user-definable; class types, struck types, interface types, enum types, and delegate types. 7. A class type defines a data structure that con

8、tains data members and functions members. Class types support inheritance and polymorphism, mechanisms whereby derived classes can extend and specialize base classes. 8. A struct type is similar to a class type in that it represents a structure with data members and functions members. However unlik

9、e classes, structs are value types and do not require heap allocation. Struct types do not support user-specified inheritance, and all struct types implicitly inherit from type object. 9. A interface type defines a contract as a named set of functions members. A class or struct that implements an i

10、nterface must provide implementations of the interface’s function members. An interface may inherit from multiple base interfaces, and a class or struct may implement multiple interfaces. 10. An enum type is a distinct type with named constants. Every enmu type has an underlying type, which must be

11、 one of the eight integral types. The set of values of an enum type is the same as the set of values of the underlying type. 11. A delegate type represents references to methods with a particular parameter list and return type. Delegates make it possible to treat methods as entities that can be ass

12、igned to variables and passed parameters. Delegates are similar to the concept of functions pointers found in some other languages, but unlike functions pointers, delegates are object-oriented and type-safe. 12. C# supports single- and multi-dimensional arrays of any type. Unlike other types, array

13、 types do not have to be declared before they can be used. Instead, array types are constructed by following a type name with square brackets. 13. C #’s type system unified such that a value of any type can be treated as an object. Every type in C# directly or indirectly derives from the object cla

14、ss type, and object is the ultimate base class of all types. Value of reference types are treated as object simply by viewing the value of as type object. Values of value types are treated as objects by performing boxing and unboxing operations. 14. Using System;

15、 Class test { Static void main () { int i =123; object o = I; int j = (int) o; } } When a value of a value type is converted to type object, an object instance, als

16、o called a “box,” is allocated to hold the value, and the value is copied into that box. Conversely, when a object reference type is cast to a value type, a check is made that the referenced object is a box of the correct value type, and, if the check succeeds, the value in the box is copied out. 1

17、5. There are several kinds of variables in C#, including fields, array elements, local variables, and parameters. Variables represents storage locations, and every variable has a type that and determines what values can be stored in the variable, as shown by the following table. 16. Expressions are

18、 constructed from operands and operators. Most operators can be overloaded. Operator overloading permits user-defined operator implementations to be specified for operations where one or both of operands are of a user-defined class or struct type. 17. The actions of program are expressed using stat

19、ements. C# supports several different kinds of statements, a number of which are defined in terms of embedded statements. 18. A block permits multiple statements to be written in contexts where a single statement is allowed. A block consists of a list of statements written between the delimiters {a

20、nd}. 19. Declarations statements are used to declare local variable and constants. 20. Expressions statements are used to evaluate expressions. Expressions that can be used as statements include method invocations, object allocations using the new operator, assignment using = and the compound assi

21、gnment operator, and increment and decrement operations using the ++and --operators. 21. Selection statements are used to select one of a number of possible statements for execution based on the value of some expression. In this group are the if and switch statements. 22. Iteration statements are

22、used repeatedly execute an embedded statement. In this group are the while, do, for, and foreach statements. 23. Jump statements are used to transfer control. In this group are the break, continue, goto, throw, and return statements. 24. Classes are the most fundamental of C#’s types. A class i

23、s a data structure that combines state field and actions in a single unit. A class provides a definition for dynamically created instances of the class, also known as objects. Classes support inheritance and polymorphism, mechanisms whereby derived classes can extend and specialize base class. 25.

24、New classes are created using class declarations. A class declaration starts with a header that specifies the attributes and modifiers of the class, the name of the class, the base class, and the interfaces implemented by the class. The header is followed by the class body, which consists of a list

25、of member declarations written between the delimiter {and}. 26. Instances of classes are created using the new operator, which allocates memory for a new instance, invokes a constructor to initialize the instance, and return a reference to the instance. 27. The members of a class are either static

26、 members or instance members. Static members belong to class, and instance members belong to objects. 28. Each member of a class has an associated accessibility, which control the regions of program text that are able to access the member. There five possible forms of accessibility. Accessibility

27、 meaning public Access not limited protected Access limited to this class and classes derived from this class internal Access limited to this program protected internal Access limited to this program and classes derived from this class

28、 private Access limited to this class 29. A class inherits the members of its base class. Inheritance means that a class implicitly contains all members of its base class, except for the constructors of the base class. A derived class can add new members to those it inherits, but in

29、cannot remove the definition of an inherited member. 30. An implicit conversion exists from a class type to any of its base class types. Therefore, a variable of a class type can reference an instance of that class or an instance of any derived class. 31. A field is a variable that is associated w

30、ith a class or with an instance of a class. A field declared with the static modifier defines a static field. A static field identifies exactly one storage location. No matter how many instances of a class are created, there is only one copy ever of a static field. A field declared without t

31、he static modifier defines an instance field. Every instance of class contains a separate copy of all the instances fields of that class. 32. Method is a member that implements a computation or action that can be performed by an object or class. Static members are accessed through the class. Instan

32、ce methods are accessed through instance of the class. Methods have a list of parameters, which represent value or variable reference passed to the method, and return type, which specifics the type of the value computed and return by the method. The signature of a method must be unique in th

33、e class in which the method is declared. The signature of a method consists of the name of the method and the number, modifiers, and types of its parameters. The signature of a method does not include the return type. 33. Parameters are used to pass values or variable references to the methods. The

34、 parameters of a method get their actual values from the arguments that are specified when the method is invoked. There are four kinds of parameters: value parameters, reference parameters, output parameters, and parameter arrays. A value parameter is used for input parameter passing. A value pa

35、rameter corresponds to a local variable that gets its initial value from the argument that was passed for the parameter. Modifications to a value parameter do not affect the argument that was passed for the parameter. A reference parameter is used for both input and output parameter passing. The

36、 argument passed for a reference parameter must be a value, and during execution of the method, the reference parameter represents the same storage location as the argument variable. A reference parameter is declared with the ref modifier. using System; class test { static

37、void Swap(ref int x, ref int y){ int temp = x; x = y; y = temp; } Static void Main () { int i =1; j =2; swap (ref i, ref j); Console.WriteLine (“{0} {1}”, i, j); } } Outputs”2 1” An output parameter is used for output parameter passing. An output parameter is similar to

38、a reference parameter except that the initial value of the caller-provided argument is unimportant. An output parameter is declared with the out modifier. using System; class Test; { static void Divide (int x, int y, out int result, out int remainder){

39、 result = x / y; remainder = x % y; } static void Main () { int res, rem; Divide (10, 3, out res, out rem); Console.writeLine(“{0} {1}”, res, rem);   } } Outputs “3 1” A parameter array permits a var

40、iable number of arguments to be passed to a method. A parameter array is declared with the params modifier. Only the last parameter of a method can be a parameter array, and the type of a parameter array must be a single-dimensional array type. 34. A method’s body specifies the statements to execut

41、e when the method is invoked. A method body can declare variables that are specific to the invocation of the method. Such variable are called local variables. A local variable declaration specifies a type name, a variable name, and possibly an initial value. 35. A method declared with a static modi

42、fier is a static method. A static method does not operate on a specific instance and can only access static members. A method declared without a static modifier is an instance method. An instance method operates on a specific instance and can access both static and instance members. The instance

43、 on which an instance method was invoked can be explicitly accessed as this. 36.When an instance declaration with a virtual modifier, the modifier is said to be a virtual method. When no virtual modifier is present, the method is said to be a non-virtual method. When a virtual method is invoked, th

44、e runtime type of the instance for which that invocation takes place determines the actual method implementation to invoke. In a nonvirtual method invocation, the compile-time type of the instance is the determining factor. 37. A virtual method can be overridden in a derived class. When an instance

45、 method declaration includes an overridden modifier, the method overrides an inherited virtual method with the same signature. 38. An abstract method is a variable method with no implementation. An abstract method is declared with the abstract modifier and is permitted only in a class that is also

46、declared abstract. An abstract method must be overridden in every nonabstract derived class. 39. Method overloading permits multiple methods in the same class to have the same name as long as they have unique signatures. 40. An interface defines a contract that can be implemented by classes and st

47、ructs. An interface can contain methods, properties, events, and indexers. An interface does not provide implementations of the members it defines—it merely specifies the members that must be supplied by classes or structs that implement the interface. Interfaces may employ multiple inheritances

48、 41. A delegate type represents references to methods with a particular parameter list and return type. Delegates make it possible to treat methods as entities that can be assigned to variables and passed as parameters. Delegates are similar to concept of function pointers found in some other lang

49、uages, but unlike functions pointer, delegates are object-oriented and type-safe. Chapter four 1.     The types of the C# language are divided into two main categories: value types and reference types. A value type is either a struct type or enumeration type. C# provides a set of predefined struct

50、 types called the simple types. 2.     All value types implicitly declare a public parameterless instance constructor called the default constructor. For sbyte, byte, short, ushort, int, unit, long, and ulong, the default value is 0. For char, the default value is ‘\x0000’.

移动网页_全站_页脚广告1

关于我们      便捷服务       自信AI       AI导航        抽奖活动

©2010-2025 宁波自信网络信息技术有限公司  版权所有

客服电话:4009-655-100  投诉/维权电话:18658249818

gongan.png浙公网安备33021202000488号   

icp.png浙ICP备2021020529号-1  |  浙B2-20240490  

关注我们 :微信公众号    抖音    微博    LOFTER 

客服