.


:




:

































 

 

 

 


#..- .




.- . . - . - . - (-) -().. . - , . . C# -:public-, . ;internal-, . ;internal protected-, . ;protected-, . ;private-, . ( ). . - -, .-. - . , -. static,readonly const.. , ( ). .. (smart fields), - ,. . , , -.. -, ,- ,- .- . . -- , - , - get set. - -.. . .- - Microsoft Windows.

C#.. .

- .-.. , ,- , - . , . . -. - . - . - . . . -- , . . , . ,- , , - - - .., , - . - . . . , - - . , .- . - . . - . -.-, ,- - . - - - . .-. -. , : . . .. - - ,.- , ..- . .

- . , , . - - -. :

_ () {

// }

-, , ,.- - ., - . , - - public, - . , , # ,. - -,, - -null--. .-,- - -. . , : . . .. - - ,.- , - ..- .. - , - . static-- .- . ,static-- , . . - # - ,. , - . - , - - "" . :

~_() {

// }

, - _ . - , "" (~). -. , . , . , . .

 

11. C#..

int,string,Console,DateTime,Math Random - .-:

offsetMeeting=meeting.AddHours(offset);

totalMins=int.Parse(Console.ReadLine());

. , ReadLine(). - -. . :_ _ _ {) {

return - // . }

//

,

- . ( .) ( void). , (private) (public). private. , . , return -,- . , . . return -. - -. ,. ;. .. - #; - , -.. - return, , -. - - . : _ (__).- - ;- , - return..( void) , : -.. , -, , - . - .:- , ,- - ..

- - . . ,. static - . . - ; .

 

12. -- , - . #:public- - ; private- , ;protected- , ;internal- . . internal - public protected, . . (private), . # - C++, , . , - , , .. # public ( ) protected ( d) - - .-:

class AccessCSharp
{public int a;
protected int d;}
- - . # b private ( ):

public DifAccessInCSharp
{public int a;
int b;}





:


: 2016-12-18; !; : 500 |


:

:

,
==> ...

1666 - | 1603 -


© 2015-2024 lektsii.org - -

: 0.008 .