{"id":5408,"date":"2026-09-24T09:00:00","date_gmt":"2026-09-24T09:00:00","guid":{"rendered":"https:\/\/otus.ru\/journal\/inkapsulyaciya-i-modifikatory-dostupa\/"},"modified":"2026-09-25T15:27:30","modified_gmt":"2026-09-25T15:27:30","slug":"inkapsulyaciya-i-modifikatory-dostupa","status":"publish","type":"post","link":"https:\/\/otus.ru\/journal\/inkapsulyaciya-i-modifikatory-dostupa\/","title":{"rendered":"\u0418\u043d\u043a\u0430\u043f\u0441\u0443\u043b\u044f\u0446\u0438\u044f \u0438 \u043c\u043e\u0434\u0438\u0444\u0438\u043a\u0430\u0442\u043e\u0440\u044b \u0434\u043e\u0441\u0442\u0443\u043f\u0430 \u0432 C#: \u0447\u0442\u043e \u0442\u0430\u043a\u043e\u0435 internal, private, protected"},"content":{"rendered":"<p><strong>\u041c\u043e\u0434\u0438\u0444\u0438\u043a\u0430\u0442\u043e\u0440 \u0434\u043e\u0441\u0442\u0443\u043f\u0430<\/strong> \u0432 C# &#8212; \u043a\u043b\u044e\u0447\u0435\u0432\u043e\u0435 \u0441\u043b\u043e\u0432\u043e (<code style=\"background:#eef0f3;color:#24292f;border-radius:4px;padding:1px 5px;font-size:0.92em;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace\">public<\/code>, <code style=\"background:#eef0f3;color:#24292f;border-radius:4px;padding:1px 5px;font-size:0.92em;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace\">private<\/code>, <code style=\"background:#eef0f3;color:#24292f;border-radius:4px;padding:1px 5px;font-size:0.92em;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace\">protected<\/code>, <code style=\"background:#eef0f3;color:#24292f;border-radius:4px;padding:1px 5px;font-size:0.92em;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace\">internal<\/code> \u0438 \u0438\u0445 \u0441\u043e\u0447\u0435\u0442\u0430\u043d\u0438\u044f), \u043a\u043e\u0442\u043e\u0440\u043e\u0435 \u0443\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442, \u0438\u0437 \u043a\u0430\u043a\u043e\u0433\u043e \u043a\u043e\u0434\u0430 \u043c\u043e\u0436\u043d\u043e \u043e\u0431\u0440\u0430\u0442\u0438\u0442\u044c\u0441\u044f \u043a \u0442\u0438\u043f\u0443 \u0438\u043b\u0438 \u0447\u043b\u0435\u043d\u0443 \u043a\u043b\u0430\u0441\u0441\u0430. <strong>\u0418\u043d\u043a\u0430\u043f\u0441\u0443\u043b\u044f\u0446\u0438\u044f<\/strong> &#8212; \u043f\u0440\u0438\u043d\u0446\u0438\u043f \u041e\u041e\u041f, \u0440\u0430\u0434\u0438 \u043a\u043e\u0442\u043e\u0440\u043e\u0433\u043e \u043c\u043e\u0434\u0438\u0444\u0438\u043a\u0430\u0442\u043e\u0440\u044b \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u044e\u0442: \u043e\u0431\u044a\u0435\u043a\u0442 \u043f\u0440\u044f\u0447\u0435\u0442 \u0432\u043d\u0443\u0442\u0440\u0435\u043d\u043d\u0435\u0435 \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0435 \u0438 \u0434\u0430\u0435\u0442 \u043c\u0435\u043d\u044f\u0442\u044c \u0435\u0433\u043e \u0442\u043e\u043b\u044c\u043a\u043e \u0447\u0435\u0440\u0435\u0437 \u0441\u0432\u043e\u0438 \u043c\u0435\u0442\u043e\u0434\u044b \u0438 \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u0430, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u044e\u0442 \u043f\u0440\u0430\u0432\u0438\u043b\u0430.<\/p>\n<div class=\"oj-toc\" style=\"background:#f6f6f6;border-radius:8px;padding:14px 20px;margin:20px 0\">\n<p><strong>\u0421\u043e\u0434\u0435\u0440\u0436\u0430\u043d\u0438\u0435<\/strong><\/p>\n<ol>\n<li><a href=\"#s1\">\u041c\u0438\u043d\u0438-\u0441\u043b\u043e\u0432\u0430\u0440\u044c: \u0441\u0431\u043e\u0440\u043a\u0430, \u0444\u0430\u0439\u043b, \u043f\u0440\u043e\u0441\u0442\u0440\u0430\u043d\u0441\u0442\u0432\u043e \u0438\u043c\u0435\u043d, \u043d\u0430\u0441\u043b\u0435\u0434\u043d\u0438\u043a<\/a><\/li>\n<li><a href=\"#s2\">\u0412\u0441\u0435 \u043c\u043e\u0434\u0438\u0444\u0438\u043a\u0430\u0442\u043e\u0440\u044b \u0434\u043e\u0441\u0442\u0443\u043f\u0430 C# \u0432 \u043e\u0434\u043d\u043e\u0439 \u0442\u0430\u0431\u043b\u0438\u0446\u0435<\/a><\/li>\n<li><a href=\"#s3\">\u041f\u0440\u0438\u043c\u0435\u0440 \u043d\u0430 \u0434\u0432\u0443\u0445 \u043f\u0440\u043e\u0435\u043a\u0442\u0430\u0445: \u043a\u0430\u043a \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 internal<\/a><\/li>\n<li><a href=\"#s4\">\u041c\u043e\u0434\u0438\u0444\u0438\u043a\u0430\u0442\u043e\u0440\u044b \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e<\/a><\/li>\n<li><a href=\"#s5\">\u041e\u0448\u0438\u0431\u043a\u0438, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0432\u0441\u0442\u0440\u0435\u0447\u0430\u044e\u0442\u0441\u044f \u0447\u0430\u0449\u0435 \u0432\u0441\u0435\u0433\u043e<\/a><\/li>\n<li><a href=\"#s6\">internal \u0438 \u0442\u0435\u0441\u0442\u044b: InternalsVisibleTo<\/a><\/li>\n<li><a href=\"#s7\">file: \u0434\u043e\u0441\u0442\u0443\u043f \u0432 \u043f\u0440\u0435\u0434\u0435\u043b\u0430\u0445 \u043e\u0434\u043d\u043e\u0433\u043e \u0444\u0430\u0439\u043b\u0430<\/a><\/li>\n<li><a href=\"#s8\">\u0418\u043d\u043a\u0430\u043f\u0441\u0443\u043b\u044f\u0446\u0438\u044f \u0447\u0435\u0440\u0435\u0437 \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u0430<\/a><\/li>\n<li><a href=\"#s9\">\u0418\u043d\u043a\u0430\u043f\u0441\u0443\u043b\u044f\u0446\u0438\u044f &#8212; \u043d\u0435 \u0437\u0430\u0449\u0438\u0442\u0430 \u043e\u0442 \u0432\u0437\u043b\u043e\u043c\u0430<\/a><\/li>\n<li><a href=\"#s10\">\u041a\u0430\u043a \u0432\u044b\u0431\u0440\u0430\u0442\u044c \u043c\u043e\u0434\u0438\u0444\u0438\u043a\u0430\u0442\u043e\u0440<\/a><\/li>\n<li><a href=\"#s11\">\u0412\u044b\u0432\u043e\u0434\u044b<\/a><\/li>\n<li><a href=\"#s12\">\u0413\u0434\u0435 \u043f\u0440\u0438\u043c\u0435\u043d\u044f\u0435\u0442\u0441\u044f \/ \u0441\u0432\u044f\u0437\u044c \u0441 \u043f\u0440\u0430\u043a\u0442\u0438\u043a\u043e\u0439<\/a><\/li>\n<li><a href=\"#s13\">FAQ<\/a><\/li>\n<\/ol>\n<\/div>\n<p>\u041a\u043e\u0440\u043e\u0442\u043a\u0438\u0439 \u043e\u0442\u0432\u0435\u0442 \u043d\u0430 \u0447\u0430\u0441\u0442\u044b\u0439 \u0432\u043e\u043f\u0440\u043e\u0441: <strong><code style=\"background:#eef0f3;color:#24292f;border-radius:4px;padding:1px 5px;font-size:0.92em;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace\">internal<\/code> \u0432 C#<\/strong> \u043e\u0442\u043a\u0440\u044b\u0432\u0430\u0435\u0442 \u0442\u0438\u043f \u0438\u043b\u0438 \u0447\u043b\u0435\u043d \u0432\u0441\u0435\u043c\u0443 \u043a\u043e\u0434\u0443 <strong>\u0442\u043e\u0439 \u0436\u0435 \u0441\u0431\u043e\u0440\u043a\u0438<\/strong> (\u043e\u0434\u043d\u043e\u0433\u043e \u0441\u043a\u043e\u043c\u043f\u0438\u043b\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u043e\u0433\u043e <code style=\"background:#eef0f3;color:#24292f;border-radius:4px;padding:1px 5px;font-size:0.92em;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace\">.dll<\/code> \u0438\u043b\u0438 <code style=\"background:#eef0f3;color:#24292f;border-radius:4px;padding:1px 5px;font-size:0.92em;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace\">.exe<\/code>, \u043e\u0431\u044b\u0447\u043d\u043e \u044d\u0442\u043e \u043e\u0434\u0438\u043d \u043f\u0440\u043e\u0435\u043a\u0442) \u0438 \u043f\u0440\u044f\u0447\u0435\u0442 \u0435\u0433\u043e \u043e\u0442 \u0434\u0440\u0443\u0433\u0438\u0445 \u0441\u0431\u043e\u0440\u043e\u043a. \u041d\u0435 \u0444\u0430\u0439\u043b\u0430 \u0438 \u043d\u0435 \u043f\u0440\u043e\u0441\u0442\u0440\u0430\u043d\u0441\u0442\u0432\u0430 \u0438\u043c\u0435\u043d, \u0430 \u0438\u043c\u0435\u043d\u043d\u043e \u0441\u0431\u043e\u0440\u043a\u0438.<\/p>\n<p>\u041f\u0440\u0438\u043c\u0435\u0440\u044b \u043f\u0440\u043e\u0432\u0435\u0440\u0435\u043d\u044b \u043d\u0430 .NET SDK 10.0.401 (C# 14) 24 \u0441\u0435\u043d\u0442\u044f\u0431\u0440\u044f 2026 \u0433\u043e\u0434\u0430, \u0442\u0435\u043a\u0441\u0442\u044b \u043e\u0448\u0438\u0431\u043e\u043a \u0432\u0437\u044f\u0442\u044b \u0438\u0437 \u0440\u0435\u0430\u043b\u044c\u043d\u043e\u0433\u043e <code style=\"background:#eef0f3;color:#24292f;border-radius:4px;padding:1px 5px;font-size:0.92em;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace\">dotnet build<\/code>.<\/p>\n<h2 id=\"s1\">\u041c\u0438\u043d\u0438-\u0441\u043b\u043e\u0432\u0430\u0440\u044c: \u0441\u0431\u043e\u0440\u043a\u0430, \u0444\u0430\u0439\u043b, \u043f\u0440\u043e\u0441\u0442\u0440\u0430\u043d\u0441\u0442\u0432\u043e \u0438\u043c\u0435\u043d, \u043d\u0430\u0441\u043b\u0435\u0434\u043d\u0438\u043a<\/h2>\n<p>\u041c\u043e\u0434\u0438\u0444\u0438\u043a\u0430\u0442\u043e\u0440\u044b \u043f\u0443\u0442\u0430\u044e\u0442 \u043f\u043e\u0442\u043e\u043c\u0443, \u0447\u0442\u043e \u043f\u0443\u0442\u0430\u044e\u0442 \u0433\u0440\u0430\u043d\u0438\u0446\u044b, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043e\u043d\u0438 \u043f\u0440\u043e\u0432\u043e\u0434\u044f\u0442. \u0427\u0435\u0442\u044b\u0440\u0435 \u043f\u043e\u043d\u044f\u0442\u0438\u044f, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0432\u0441\u0442\u0440\u0435\u0442\u044f\u0442\u0441\u044f \u043d\u0438\u0436\u0435:<\/p>\n<table>\n<thead>\n<tr>\n<th>\u041f\u043e\u043d\u044f\u0442\u0438\u0435<\/th>\n<th>\u0427\u0442\u043e \u044d\u0442\u043e<\/th>\n<th>\u041f\u0440\u0438\u043c\u0435\u0440<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>\u0424\u0430\u0439\u043b<\/td>\n<td>\u041e\u0434\u0438\u043d \u0438\u0441\u0445\u043e\u0434\u043d\u0438\u043a <code style=\"background:#eef0f3;color:#24292f;border-radius:4px;padding:1px 5px;font-size:0.92em;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace\">.cs<\/code><\/td>\n<td><code style=\"background:#eef0f3;color:#24292f;border-radius:4px;padding:1px 5px;font-size:0.92em;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace\">Account.cs<\/code><\/td>\n<\/tr>\n<tr>\n<td>\u041f\u0440\u043e\u0441\u0442\u0440\u0430\u043d\u0441\u0442\u0432\u043e \u0438\u043c\u0435\u043d<\/td>\n<td>\u041b\u043e\u0433\u0438\u0447\u0435\u0441\u043a\u0430\u044f \u0433\u0440\u0443\u043f\u043f\u0430 \u0438\u043c\u0435\u043d, \u043d\u0435 \u0433\u0440\u0430\u043d\u0438\u0446\u0430 \u0434\u043e\u0441\u0442\u0443\u043f\u0430<\/td>\n<td><code style=\"background:#eef0f3;color:#24292f;border-radius:4px;padding:1px 5px;font-size:0.92em;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace\">namespace Shop.Core;<\/code><\/td>\n<\/tr>\n<tr>\n<td>\u0421\u0431\u043e\u0440\u043a\u0430<\/td>\n<td>\u0420\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442 \u043a\u043e\u043c\u043f\u0438\u043b\u044f\u0446\u0438\u0438 \u043f\u0440\u043e\u0435\u043a\u0442\u0430: <code style=\"background:#eef0f3;color:#24292f;border-radius:4px;padding:1px 5px;font-size:0.92em;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace\">.dll<\/code> \u0438\u043b\u0438 <code style=\"background:#eef0f3;color:#24292f;border-radius:4px;padding:1px 5px;font-size:0.92em;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace\">.exe<\/code><\/td>\n<td><code style=\"background:#eef0f3;color:#24292f;border-radius:4px;padding:1px 5px;font-size:0.92em;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace\">Shop.Core.dll<\/code><\/td>\n<\/tr>\n<tr>\n<td>\u041d\u0430\u0441\u043b\u0435\u0434\u043d\u0438\u043a<\/td>\n<td>\u041a\u043b\u0430\u0441\u0441, \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u043d\u044b\u0439 \u043e\u0442 \u0434\u0430\u043d\u043d\u043e\u0433\u043e (<code style=\"background:#eef0f3;color:#24292f;border-radius:4px;padding:1px 5px;font-size:0.92em;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace\">class B : A<\/code>)<\/td>\n<td><code style=\"background:#eef0f3;color:#24292f;border-radius:4px;padding:1px 5px;font-size:0.92em;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace\">SavingsAccount : Account<\/code><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u041f\u0440\u043e\u0441\u0442\u0440\u0430\u043d\u0441\u0442\u0432\u043e \u0438\u043c\u0435\u043d \u043d\u0430 \u0434\u043e\u0441\u0442\u0443\u043f \u043d\u0435 \u0432\u043b\u0438\u044f\u0435\u0442 \u0432\u043e\u043e\u0431\u0449\u0435: <code style=\"background:#eef0f3;color:#24292f;border-radius:4px;padding:1px 5px;font-size:0.92em;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace\">internal<\/code>-\u043a\u043b\u0430\u0441\u0441 \u0438\u0437 <code style=\"background:#eef0f3;color:#24292f;border-radius:4px;padding:1px 5px;font-size:0.92em;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace\">Shop.Core<\/code> \u0432\u0438\u0434\u0435\u043d \u0438 \u0432 <code style=\"background:#eef0f3;color:#24292f;border-radius:4px;padding:1px 5px;font-size:0.92em;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace\">Shop.Core.Reports<\/code>, \u0435\u0441\u043b\u0438 \u044d\u0442\u043e \u0442\u0430 \u0436\u0435 \u0441\u0431\u043e\u0440\u043a\u0430, \u0438 \u043d\u0435 \u0432\u0438\u0434\u0435\u043d \u0432 <code style=\"background:#eef0f3;color:#24292f;border-radius:4px;padding:1px 5px;font-size:0.92em;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace\">Shop.App<\/code>, \u0434\u0430\u0436\u0435 \u0435\u0441\u043b\u0438 \u0442\u0430\u043c \u043d\u0430\u043f\u0438\u0441\u0430\u0442\u044c <code style=\"background:#eef0f3;color:#24292f;border-radius:4px;padding:1px 5px;font-size:0.92em;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace\">using Shop.Core;<\/code>.<\/p>\n<h2 id=\"s2\">\u0412\u0441\u0435 \u043c\u043e\u0434\u0438\u0444\u0438\u043a\u0430\u0442\u043e\u0440\u044b \u0434\u043e\u0441\u0442\u0443\u043f\u0430 C# \u0432 \u043e\u0434\u043d\u043e\u0439 \u0442\u0430\u0431\u043b\u0438\u0446\u0435<\/h2>\n<p>\u0412 C# \u0448\u0435\u0441\u0442\u044c \u0443\u0440\u043e\u0432\u043d\u0435\u0439 \u0434\u043e\u0441\u0442\u0443\u043f\u0430 \u0434\u043b\u044f \u0447\u043b\u0435\u043d\u043e\u0432 \u043a\u043b\u0430\u0441\u0441\u043e\u0432 \u0438 \u0441\u0435\u0434\u044c\u043c\u043e\u0439, <code style=\"background:#eef0f3;color:#24292f;border-radius:4px;padding:1px 5px;font-size:0.92em;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace\">file<\/code>, \u0442\u043e\u043b\u044c\u043a\u043e \u0434\u043b\u044f \u0442\u0438\u043f\u043e\u0432 (\u0441 C# 11). \u041a\u043e\u043b\u043e\u043d\u043a\u0438 &#8212; \u043e\u0442\u043a\u0443\u0434\u0430 \u0438\u0434\u0435\u0442 \u043e\u0431\u0440\u0430\u0449\u0435\u043d\u0438\u0435.<\/p>\n<table>\n<thead>\n<tr>\n<th>\u041c\u043e\u0434\u0438\u0444\u0438\u043a\u0430\u0442\u043e\u0440<\/th>\n<th>\u0421\u0432\u043e\u0439 \u0442\u0438\u043f<\/th>\n<th>\u041d\u0430\u0441\u043b\u0435\u0434\u043d\u0438\u043a, \u0442\u0430 \u0436\u0435 \u0441\u0431\u043e\u0440\u043a\u0430<\/th>\n<th>\u041d\u0435 \u043d\u0430\u0441\u043b\u0435\u0434\u043d\u0438\u043a, \u0442\u0430 \u0436\u0435 \u0441\u0431\u043e\u0440\u043a\u0430<\/th>\n<th>\u041d\u0430\u0441\u043b\u0435\u0434\u043d\u0438\u043a, \u0434\u0440\u0443\u0433\u0430\u044f \u0441\u0431\u043e\u0440\u043a\u0430<\/th>\n<th>\u041d\u0435 \u043d\u0430\u0441\u043b\u0435\u0434\u043d\u0438\u043a, \u0434\u0440\u0443\u0433\u0430\u044f \u0441\u0431\u043e\u0440\u043a\u0430<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td><code style=\"background:#eef0f3;color:#24292f;border-radius:4px;padding:1px 5px;font-size:0.92em;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace\">public<\/code><\/td>\n<td>\u0434\u0430<\/td>\n<td>\u0434\u0430<\/td>\n<td>\u0434\u0430<\/td>\n<td>\u0434\u0430<\/td>\n<td>\u0434\u0430<\/td>\n<\/tr>\n<tr>\n<td><code style=\"background:#eef0f3;color:#24292f;border-radius:4px;padding:1px 5px;font-size:0.92em;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace\">protected internal<\/code><\/td>\n<td>\u0434\u0430<\/td>\n<td>\u0434\u0430<\/td>\n<td>\u0434\u0430<\/td>\n<td>\u0434\u0430<\/td>\n<td>\u043d\u0435\u0442<\/td>\n<\/tr>\n<tr>\n<td><code style=\"background:#eef0f3;color:#24292f;border-radius:4px;padding:1px 5px;font-size:0.92em;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace\">protected<\/code><\/td>\n<td>\u0434\u0430<\/td>\n<td>\u0434\u0430<\/td>\n<td>\u043d\u0435\u0442<\/td>\n<td>\u0434\u0430<\/td>\n<td>\u043d\u0435\u0442<\/td>\n<\/tr>\n<tr>\n<td><code style=\"background:#eef0f3;color:#24292f;border-radius:4px;padding:1px 5px;font-size:0.92em;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace\">internal<\/code><\/td>\n<td>\u0434\u0430<\/td>\n<td>\u0434\u0430<\/td>\n<td>\u0434\u0430<\/td>\n<td>\u043d\u0435\u0442<\/td>\n<td>\u043d\u0435\u0442<\/td>\n<\/tr>\n<tr>\n<td><code style=\"background:#eef0f3;color:#24292f;border-radius:4px;padding:1px 5px;font-size:0.92em;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace\">private protected<\/code><\/td>\n<td>\u0434\u0430<\/td>\n<td>\u0434\u0430<\/td>\n<td>\u043d\u0435\u0442<\/td>\n<td>\u043d\u0435\u0442<\/td>\n<td>\u043d\u0435\u0442<\/td>\n<\/tr>\n<tr>\n<td><code style=\"background:#eef0f3;color:#24292f;border-radius:4px;padding:1px 5px;font-size:0.92em;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace\">private<\/code><\/td>\n<td>\u0434\u0430<\/td>\n<td>\u043d\u0435\u0442<\/td>\n<td>\u043d\u0435\u0442<\/td>\n<td>\u043d\u0435\u0442<\/td>\n<td>\u043d\u0435\u0442<\/td>\n<\/tr>\n<tr>\n<td><code style=\"background:#eef0f3;color:#24292f;border-radius:4px;padding:1px 5px;font-size:0.92em;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace\">file<\/code> (\u0442\u043e\u043b\u044c\u043a\u043e \u0442\u0438\u043f\u044b)<\/td>\n<td>\u0442\u043e\u043b\u044c\u043a\u043e \u043a\u043e\u0434 \u0432 \u0442\u043e\u043c \u0436\u0435 <code style=\"background:#eef0f3;color:#24292f;border-radius:4px;padding:1px 5px;font-size:0.92em;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace\">.cs<\/code>-\u0444\u0430\u0439\u043b\u0435<\/td>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u0414\u0432\u0435 \u043f\u0430\u0440\u044b \u043f\u0443\u0442\u0430\u044e\u0442 \u0447\u0430\u0449\u0435 \u0432\u0441\u0435\u0433\u043e:<\/p>\n<ul>\n<li><strong><code style=\"background:#eef0f3;color:#24292f;border-radius:4px;padding:1px 5px;font-size:0.92em;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace\">protected internal<\/code> = protected \u0418\u041b\u0418 internal.<\/strong> \u0414\u043e\u0441\u0442\u0443\u043f \u0435\u0441\u0442\u044c \u0443 \u0432\u0441\u0435\u0439 \u0441\u0432\u043e\u0435\u0439 \u0441\u0431\u043e\u0440\u043a\u0438 \u043f\u043b\u044e\u0441 \u0443 \u043d\u0430\u0441\u043b\u0435\u0434\u043d\u0438\u043a\u043e\u0432 \u0432 \u043b\u044e\u0431\u043e\u0439 \u0441\u0431\u043e\u0440\u043a\u0435. \u042d\u0442\u043e \u0441\u0430\u043c\u044b\u0439 \u0448\u0438\u0440\u043e\u043a\u0438\u0439 \u0443\u0440\u043e\u0432\u0435\u043d\u044c \u043f\u043e\u0441\u043b\u0435 <code style=\"background:#eef0f3;color:#24292f;border-radius:4px;padding:1px 5px;font-size:0.92em;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace\">public<\/code>.<\/li>\n<li><strong><code style=\"background:#eef0f3;color:#24292f;border-radius:4px;padding:1px 5px;font-size:0.92em;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace\">private protected<\/code> = protected \u0418 internal.<\/strong> \u0414\u043e\u0441\u0442\u0443\u043f \u0435\u0441\u0442\u044c \u0442\u043e\u043b\u044c\u043a\u043e \u0443 \u043d\u0430\u0441\u043b\u0435\u0434\u043d\u0438\u043a\u043e\u0432, \u0438 \u0442\u043e\u043b\u044c\u043a\u043e \u0435\u0441\u043b\u0438 \u043e\u043d\u0438 \u0432 \u0442\u043e\u0439 \u0436\u0435 \u0441\u0431\u043e\u0440\u043a\u0435 (\u043f\u043e\u044f\u0432\u0438\u043b\u0441\u044f \u0432 C# 7.2).<\/li>\n<\/ul>\n<h2 id=\"s3\">\u041f\u0440\u0438\u043c\u0435\u0440 \u043d\u0430 \u0434\u0432\u0443\u0445 \u043f\u0440\u043e\u0435\u043a\u0442\u0430\u0445: \u043a\u0430\u043a \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 internal<\/h2>\n<p>\u0427\u0442\u043e\u0431\u044b \u0443\u0432\u0438\u0434\u0435\u0442\u044c \u0433\u0440\u0430\u043d\u0438\u0446\u0443 \u0441\u0431\u043e\u0440\u043a\u0438, \u043d\u0443\u0436\u043d\u044b \u0434\u0432\u0430 \u043f\u0440\u043e\u0435\u043a\u0442\u0430: \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0430 \u0438 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435, \u043a\u043e\u0442\u043e\u0440\u043e\u0435 \u043d\u0430 \u043d\u0435\u0435 \u0441\u0441\u044b\u043b\u0430\u0435\u0442\u0441\u044f.<\/p>\n<pre style=\"background:#282c34;color:#abb2bf;border-radius:8px;padding:16px 20px;margin:20px 0;overflow-x:auto;font-size:14px;line-height:1.55;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace\"><code style=\"background:none\">dotnet<span style=\"color: #ABB2BF\"> <\/span>new<span style=\"color: #ABB2BF\"> <\/span>classlib<span style=\"color: #ABB2BF\"> <\/span>-n<span style=\"color: #ABB2BF\"> <\/span>Shop.Core\ndotnet<span style=\"color: #ABB2BF\"> <\/span>new<span style=\"color: #ABB2BF\"> <\/span>console<span style=\"color: #ABB2BF\"> <\/span>-n<span style=\"color: #ABB2BF\"> <\/span>Shop.App\ndotnet<span style=\"color: #ABB2BF\"> <\/span>add<span style=\"color: #ABB2BF\"> <\/span>Shop.App<span style=\"color: #ABB2BF\"> <\/span>reference<span style=\"color: #ABB2BF\"> <\/span>Shop.Core\/Shop.Core.csproj<\/code><\/pre>\n<p>\u0424\u0430\u0439\u043b \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0438 <code style=\"background:#eef0f3;color:#24292f;border-radius:4px;padding:1px 5px;font-size:0.92em;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace\">Shop.Core\/Account.cs<\/code> &#8212; \u0441\u0447\u0435\u0442, \u0443 \u043a\u043e\u0442\u043e\u0440\u043e\u0433\u043e \u043a\u0430\u0436\u0434\u044b\u0439 \u0447\u043b\u0435\u043d \u043f\u043e\u043c\u0435\u0447\u0435\u043d \u0441\u0432\u043e\u0438\u043c \u043c\u043e\u0434\u0438\u0444\u0438\u043a\u0430\u0442\u043e\u0440\u043e\u043c:<\/p>\n<pre style=\"background:#282c34;color:#abb2bf;border-radius:8px;padding:16px 20px;margin:20px 0;overflow-x:auto;font-size:14px;line-height:1.55;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace\"><code style=\"background:none\"><span style=\"color: #C678DD\">namespace<\/span><span style=\"color: #ABB2BF\"> <\/span><span style=\"color: #E06C75\">Shop.Core<\/span><span style=\"color: #ABB2BF\">;<\/span>\n\n<span style=\"color: #C678DD\">public<\/span><span style=\"color: #ABB2BF\"> <\/span><span style=\"color: #C678DD\">class<\/span><span style=\"color: #ABB2BF\"> <\/span><span style=\"color: #E5C07B\">Account<\/span>\n<span style=\"color: #ABB2BF\">{<\/span>\n<span style=\"color: #ABB2BF\">    <\/span><span style=\"color: #C678DD\">private<\/span><span style=\"color: #ABB2BF\"> <\/span><span style=\"color: #E5C07B\">decimal<\/span><span style=\"color: #ABB2BF\"> <\/span><span style=\"color: #E06C75\">_balance<\/span><span style=\"color: #ABB2BF\">;                 <\/span><span style=\"color: #7F848E\">\/\/ \u0442\u043e\u043b\u044c\u043a\u043e \u0432\u043d\u0443\u0442\u0440\u0438 Account<\/span>\n<span style=\"color: #ABB2BF\">    <\/span><span style=\"color: #C678DD\">internal<\/span><span style=\"color: #ABB2BF\"> <\/span><span style=\"color: #E5C07B\">string<\/span><span style=\"color: #ABB2BF\"> <\/span><span style=\"color: #E06C75\">AuditTag<\/span><span style=\"color: #ABB2BF\"> <\/span><span style=\"color: #56B6C2\">=<\/span><span style=\"color: #ABB2BF\"> <\/span><span style=\"color: #98C379\">\"core\"<\/span><span style=\"color: #ABB2BF\">;        <\/span><span style=\"color: #7F848E\">\/\/ \u043b\u044e\u0431\u043e\u0439 \u043a\u043e\u0434 \u0441\u0431\u043e\u0440\u043a\u0438 Shop.Core<\/span>\n<span style=\"color: #ABB2BF\">    <\/span><span style=\"color: #C678DD\">protected<\/span><span style=\"color: #ABB2BF\"> <\/span><span style=\"color: #E5C07B\">int<\/span><span style=\"color: #ABB2BF\"> <\/span><span style=\"color: #E06C75\">Operations<\/span><span style=\"color: #ABB2BF\">;                 <\/span><span style=\"color: #7F848E\">\/\/ Account \u0438 \u043d\u0430\u0441\u043b\u0435\u0434\u043d\u0438\u043a\u0438 (\u0438\u0437 \u043b\u044e\u0431\u043e\u0439 \u0441\u0431\u043e\u0440\u043a\u0438)<\/span>\n<span style=\"color: #ABB2BF\">    <\/span><span style=\"color: #C678DD\">protected<\/span><span style=\"color: #ABB2BF\"> <\/span><span style=\"color: #C678DD\">internal<\/span><span style=\"color: #ABB2BF\"> <\/span><span style=\"color: #E5C07B\">int<\/span><span style=\"color: #ABB2BF\"> <\/span><span style=\"color: #E06C75\">Version<\/span><span style=\"color: #ABB2BF\"> <\/span><span style=\"color: #56B6C2\">=<\/span><span style=\"color: #ABB2BF\"> <\/span><span style=\"color: #D19A66\">1<\/span><span style=\"color: #ABB2BF\">;       <\/span><span style=\"color: #7F848E\">\/\/ \u043d\u0430\u0441\u043b\u0435\u0434\u043d\u0438\u043a\u0438 \u0418\u041b\u0418 \u043b\u044e\u0431\u043e\u0439 \u043a\u043e\u0434 Shop.Core<\/span>\n<span style=\"color: #ABB2BF\">    <\/span><span style=\"color: #C678DD\">private<\/span><span style=\"color: #ABB2BF\"> <\/span><span style=\"color: #C678DD\">protected<\/span><span style=\"color: #ABB2BF\"> <\/span><span style=\"color: #E5C07B\">bool<\/span><span style=\"color: #ABB2BF\"> <\/span><span style=\"color: #E06C75\">Frozen<\/span><span style=\"color: #ABB2BF\">;            <\/span><span style=\"color: #7F848E\">\/\/ \u043d\u0430\u0441\u043b\u0435\u0434\u043d\u0438\u043a\u0438, \u043d\u043e \u0442\u043e\u043b\u044c\u043a\u043e \u0432\u043d\u0443\u0442\u0440\u0438 Shop.Core<\/span>\n\n<span style=\"color: #ABB2BF\">    <\/span><span style=\"color: #C678DD\">public<\/span><span style=\"color: #ABB2BF\"> <\/span><span style=\"color: #E5C07B\">decimal<\/span><span style=\"color: #ABB2BF\"> <\/span><span style=\"color: #E06C75\">Balance<\/span><span style=\"color: #ABB2BF\"> <\/span><span style=\"color: #56B6C2\">=&gt;<\/span><span style=\"color: #ABB2BF\"> <\/span><span style=\"color: #E06C75\">_balance<\/span><span style=\"color: #ABB2BF\">;       <\/span><span style=\"color: #7F848E\">\/\/ \u0447\u0438\u0442\u0430\u0442\u044c \u043c\u043e\u0436\u0435\u0442 \u043a\u0442\u043e \u0443\u0433\u043e\u0434\u043d\u043e<\/span>\n\n<span style=\"color: #ABB2BF\">    <\/span><span style=\"color: #C678DD\">public<\/span><span style=\"color: #ABB2BF\"> <\/span><span style=\"color: #C678DD\">void<\/span><span style=\"color: #ABB2BF\"> <\/span><span style=\"color: #61AFEF; font-weight: bold\">Deposit<\/span><span style=\"color: #ABB2BF\">(<\/span><span style=\"color: #E5C07B\">decimal<\/span><span style=\"color: #ABB2BF\"> <\/span><span style=\"color: #E06C75\">amount<\/span><span style=\"color: #ABB2BF\">)<\/span>\n<span style=\"color: #ABB2BF\">    {<\/span>\n<span style=\"color: #ABB2BF\">        <\/span><span style=\"color: #C678DD\">if<\/span><span style=\"color: #ABB2BF\"> (<\/span><span style=\"color: #E06C75\">amount<\/span><span style=\"color: #ABB2BF\"> <\/span><span style=\"color: #56B6C2\">&lt;=<\/span><span style=\"color: #ABB2BF\"> <\/span><span style=\"color: #D19A66\">0<\/span><span style=\"color: #ABB2BF\">)<\/span>\n<span style=\"color: #ABB2BF\">            <\/span><span style=\"color: #C678DD\">throw<\/span><span style=\"color: #ABB2BF\"> <\/span><span style=\"color: #C678DD\">new<\/span><span style=\"color: #ABB2BF\"> <\/span><span style=\"color: #61AFEF; font-weight: bold\">ArgumentOutOfRangeException<\/span><span style=\"color: #ABB2BF\">(<\/span><span style=\"color: #C678DD\">nameof<\/span><span style=\"color: #ABB2BF\">(<\/span><span style=\"color: #E06C75\">amount<\/span><span style=\"color: #ABB2BF\">), <\/span><span style=\"color: #98C379\">\"\u0421\u0443\u043c\u043c\u0430 \u0434\u043e\u043b\u0436\u043d\u0430 \u0431\u044b\u0442\u044c \u0431\u043e\u043b\u044c\u0448\u0435 \u043d\u0443\u043b\u044f\"<\/span><span style=\"color: #ABB2BF\">);<\/span>\n<span style=\"color: #ABB2BF\">        <\/span><span style=\"color: #C678DD\">if<\/span><span style=\"color: #ABB2BF\"> (<\/span><span style=\"color: #E06C75\">Frozen<\/span><span style=\"color: #ABB2BF\">)<\/span>\n<span style=\"color: #ABB2BF\">            <\/span><span style=\"color: #C678DD\">throw<\/span><span style=\"color: #ABB2BF\"> <\/span><span style=\"color: #C678DD\">new<\/span><span style=\"color: #ABB2BF\"> <\/span><span style=\"color: #61AFEF; font-weight: bold\">InvalidOperationException<\/span><span style=\"color: #ABB2BF\">(<\/span><span style=\"color: #98C379\">\"\u0421\u0447\u0435\u0442 \u0437\u0430\u043c\u043e\u0440\u043e\u0436\u0435\u043d\"<\/span><span style=\"color: #ABB2BF\">);<\/span>\n<span style=\"color: #ABB2BF\">        <\/span><span style=\"color: #E06C75\">_balance<\/span><span style=\"color: #ABB2BF\"> <\/span><span style=\"color: #56B6C2\">+=<\/span><span style=\"color: #ABB2BF\"> <\/span><span style=\"color: #E06C75\">amount<\/span><span style=\"color: #ABB2BF\">;<\/span>\n<span style=\"color: #ABB2BF\">        <\/span><span style=\"color: #E06C75\">Operations<\/span><span style=\"color: #56B6C2\">++<\/span><span style=\"color: #ABB2BF\">;<\/span>\n<span style=\"color: #ABB2BF\">    }<\/span>\n<span style=\"color: #ABB2BF\">}<\/span>\n\n<span style=\"color: #C678DD\">internal<\/span><span style=\"color: #ABB2BF\"> <\/span><span style=\"color: #C678DD\">class<\/span><span style=\"color: #ABB2BF\"> <\/span><span style=\"color: #E5C07B\">FeeCalculator<\/span><span style=\"color: #ABB2BF\">                  <\/span><span style=\"color: #7F848E\">\/\/ \u0442\u0438\u043f \u0432\u0438\u0434\u0435\u043d \u0442\u043e\u043b\u044c\u043a\u043e \u0432 Shop.Core<\/span>\n<span style=\"color: #ABB2BF\">{<\/span>\n<span style=\"color: #ABB2BF\">    <\/span><span style=\"color: #C678DD\">public<\/span><span style=\"color: #ABB2BF\"> <\/span><span style=\"color: #E5C07B\">decimal<\/span><span style=\"color: #ABB2BF\"> <\/span><span style=\"color: #61AFEF; font-weight: bold\">Fee<\/span><span style=\"color: #ABB2BF\">(<\/span><span style=\"color: #E5C07B\">decimal<\/span><span style=\"color: #ABB2BF\"> <\/span><span style=\"color: #E06C75\">amount<\/span><span style=\"color: #ABB2BF\">) <\/span><span style=\"color: #56B6C2\">=&gt;<\/span><span style=\"color: #ABB2BF\"> <\/span><span style=\"color: #E06C75\">amount<\/span><span style=\"color: #ABB2BF\"> <\/span><span style=\"color: #56B6C2\">*<\/span><span style=\"color: #ABB2BF\"> <\/span><span style=\"color: #D19A66\">0.01m<\/span><span style=\"color: #ABB2BF\">;<\/span>\n<span style=\"color: #ABB2BF\">}<\/span>\n\n<span style=\"color: #C678DD\">public<\/span><span style=\"color: #ABB2BF\"> <\/span><span style=\"color: #C678DD\">class<\/span><span style=\"color: #ABB2BF\"> <\/span><span style=\"color: #E5C07B\">SavingsAccount<\/span><span style=\"color: #ABB2BF\"> : <\/span><span style=\"color: #E06C75\">Account<\/span><span style=\"color: #ABB2BF\">         <\/span><span style=\"color: #7F848E\">\/\/ \u043d\u0430\u0441\u043b\u0435\u0434\u043d\u0438\u043a \u0432 \u0442\u043e\u0439 \u0436\u0435 \u0441\u0431\u043e\u0440\u043a\u0435<\/span>\n<span style=\"color: #ABB2BF\">{<\/span>\n<span style=\"color: #ABB2BF\">    <\/span><span style=\"color: #C678DD\">public<\/span><span style=\"color: #ABB2BF\"> <\/span><span style=\"color: #C678DD\">void<\/span><span style=\"color: #ABB2BF\"> <\/span><span style=\"color: #61AFEF; font-weight: bold\">Freeze<\/span><span style=\"color: #ABB2BF\">() <\/span><span style=\"color: #56B6C2\">=&gt;<\/span><span style=\"color: #ABB2BF\"> <\/span><span style=\"color: #E06C75\">Frozen<\/span><span style=\"color: #ABB2BF\"> <\/span><span style=\"color: #56B6C2\">=<\/span><span style=\"color: #ABB2BF\"> <\/span><span style=\"color: #C678DD\">true<\/span><span style=\"color: #ABB2BF\">;    <\/span><span style=\"color: #7F848E\">\/\/ private protected: \u043c\u043e\u0436\u043d\u043e<\/span>\n<span style=\"color: #ABB2BF\">}<\/span><\/code><\/pre>\n<p>\u0422\u0435\u043f\u0435\u0440\u044c \u043d\u0435\u0432\u0435\u0440\u043d\u044b\u0439 \u0432\u0430\u0440\u0438\u0430\u043d\u0442 <code style=\"background:#eef0f3;color:#24292f;border-radius:4px;padding:1px 5px;font-size:0.92em;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace\">Shop.App\/Program.cs<\/code>, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043f\u044b\u0442\u0430\u0435\u0442\u0441\u044f \u0434\u043e\u0442\u044f\u043d\u0443\u0442\u044c\u0441\u044f \u0434\u043e \u0432\u0441\u0435\u0433\u043e \u043f\u043e\u0434\u0440\u044f\u0434 \u0438\u0437 \u0434\u0440\u0443\u0433\u043e\u0439 \u0441\u0431\u043e\u0440\u043a\u0438:<\/p>\n<pre style=\"background:#282c34;color:#abb2bf;border-radius:8px;padding:16px 20px;margin:20px 0;overflow-x:auto;font-size:14px;line-height:1.55;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace\"><code style=\"background:none\"><span style=\"color: #C678DD\">using<\/span><span style=\"color: #ABB2BF\"> <\/span><span style=\"color: #E06C75\">Shop.Core<\/span><span style=\"color: #ABB2BF\">;<\/span>\n\n<span style=\"color: #E5C07B\">var<\/span><span style=\"color: #ABB2BF\"> <\/span><span style=\"color: #E06C75\">acc<\/span><span style=\"color: #ABB2BF\"> <\/span><span style=\"color: #56B6C2\">=<\/span><span style=\"color: #ABB2BF\"> <\/span><span style=\"color: #C678DD\">new<\/span><span style=\"color: #ABB2BF\"> <\/span><span style=\"color: #E06C75\">Account<\/span><span style=\"color: #ABB2BF\">();<\/span>\n<span style=\"color: #E06C75\">acc<\/span><span style=\"color: #ABB2BF\">.<\/span><span style=\"color: #E06C75\">Deposit<\/span><span style=\"color: #ABB2BF\">(<\/span><span style=\"color: #D19A66\">100<\/span><span style=\"color: #ABB2BF\">);<\/span>\n<span style=\"color: #E06C75\">Console<\/span><span style=\"color: #ABB2BF\">.<\/span><span style=\"color: #E06C75\">WriteLine<\/span><span style=\"color: #ABB2BF\">(<\/span><span style=\"color: #E06C75\">acc<\/span><span style=\"color: #ABB2BF\">.<\/span><span style=\"color: #E06C75\">Balance<\/span><span style=\"color: #ABB2BF\">);<\/span>\n\n<span style=\"color: #E06C75\">Console<\/span><span style=\"color: #ABB2BF\">.<\/span><span style=\"color: #E06C75\">WriteLine<\/span><span style=\"color: #ABB2BF\">(<\/span><span style=\"color: #E06C75\">acc<\/span><span style=\"color: #ABB2BF\">.<\/span><span style=\"color: #E06C75\">_balance<\/span><span style=\"color: #ABB2BF\">);      <\/span><span style=\"color: #7F848E\">\/\/ private<\/span>\n<span style=\"color: #E06C75\">Console<\/span><span style=\"color: #ABB2BF\">.<\/span><span style=\"color: #E06C75\">WriteLine<\/span><span style=\"color: #ABB2BF\">(<\/span><span style=\"color: #E06C75\">acc<\/span><span style=\"color: #ABB2BF\">.<\/span><span style=\"color: #E06C75\">AuditTag<\/span><span style=\"color: #ABB2BF\">);      <\/span><span style=\"color: #7F848E\">\/\/ internal<\/span>\n<span style=\"color: #E06C75\">Console<\/span><span style=\"color: #ABB2BF\">.<\/span><span style=\"color: #E06C75\">WriteLine<\/span><span style=\"color: #ABB2BF\">(<\/span><span style=\"color: #E06C75\">acc<\/span><span style=\"color: #ABB2BF\">.<\/span><span style=\"color: #E06C75\">Version<\/span><span style=\"color: #ABB2BF\">);       <\/span><span style=\"color: #7F848E\">\/\/ protected internal, \u043d\u043e App \u043d\u0435 \u043d\u0430\u0441\u043b\u0435\u0434\u043d\u0438\u043a<\/span>\n<span style=\"color: #E5C07B\">var<\/span><span style=\"color: #ABB2BF\"> <\/span><span style=\"color: #E06C75\">calc<\/span><span style=\"color: #ABB2BF\"> <\/span><span style=\"color: #56B6C2\">=<\/span><span style=\"color: #ABB2BF\"> <\/span><span style=\"color: #C678DD\">new<\/span><span style=\"color: #ABB2BF\"> <\/span><span style=\"color: #E06C75\">FeeCalculator<\/span><span style=\"color: #ABB2BF\">();       <\/span><span style=\"color: #7F848E\">\/\/ internal-\u0442\u0438\u043f<\/span>\n\n<span style=\"color: #C678DD\">class<\/span><span style=\"color: #ABB2BF\"> <\/span><span style=\"color: #E5C07B\">VipAccount<\/span><span style=\"color: #ABB2BF\"> : <\/span><span style=\"color: #E06C75\">Account<\/span><span style=\"color: #ABB2BF\">            <\/span><span style=\"color: #7F848E\">\/\/ \u043d\u0430\u0441\u043b\u0435\u0434\u043d\u0438\u043a \u0432 \u0414\u0420\u0423\u0413\u041e\u0419 \u0441\u0431\u043e\u0440\u043a\u0435<\/span>\n<span style=\"color: #ABB2BF\">{<\/span>\n<span style=\"color: #ABB2BF\">    <\/span><span style=\"color: #C678DD\">public<\/span><span style=\"color: #ABB2BF\"> <\/span><span style=\"color: #E5C07B\">int<\/span><span style=\"color: #ABB2BF\"> <\/span><span style=\"color: #61AFEF; font-weight: bold\">Ops<\/span><span style=\"color: #ABB2BF\">() <\/span><span style=\"color: #56B6C2\">=&gt;<\/span><span style=\"color: #ABB2BF\"> <\/span><span style=\"color: #E06C75\">Operations<\/span><span style=\"color: #ABB2BF\">;   <\/span><span style=\"color: #7F848E\">\/\/ protected: \u043c\u043e\u0436\u043d\u043e<\/span>\n<span style=\"color: #ABB2BF\">    <\/span><span style=\"color: #C678DD\">public<\/span><span style=\"color: #ABB2BF\"> <\/span><span style=\"color: #E5C07B\">int<\/span><span style=\"color: #ABB2BF\"> <\/span><span style=\"color: #61AFEF; font-weight: bold\">Ver<\/span><span style=\"color: #ABB2BF\">() <\/span><span style=\"color: #56B6C2\">=&gt;<\/span><span style=\"color: #ABB2BF\"> <\/span><span style=\"color: #E06C75\">Version<\/span><span style=\"color: #ABB2BF\">;      <\/span><span style=\"color: #7F848E\">\/\/ protected internal: \u043c\u043e\u0436\u043d\u043e (\u043d\u0430\u0441\u043b\u0435\u0434\u043d\u0438\u043a)<\/span>\n<span style=\"color: #ABB2BF\">    <\/span><span style=\"color: #C678DD\">public<\/span><span style=\"color: #ABB2BF\"> <\/span><span style=\"color: #C678DD\">void<\/span><span style=\"color: #ABB2BF\"> <\/span><span style=\"color: #61AFEF; font-weight: bold\">Stop<\/span><span style=\"color: #ABB2BF\">() <\/span><span style=\"color: #56B6C2\">=&gt;<\/span><span style=\"color: #ABB2BF\"> <\/span><span style=\"color: #E06C75\">Frozen<\/span><span style=\"color: #ABB2BF\"> <\/span><span style=\"color: #56B6C2\">=<\/span><span style=\"color: #ABB2BF\"> <\/span><span style=\"color: #C678DD\">true<\/span><span style=\"color: #ABB2BF\">; <\/span><span style=\"color: #7F848E\">\/\/ private protected: \u043d\u0435\u043b\u044c\u0437\u044f<\/span>\n<span style=\"color: #ABB2BF\">}<\/span><\/code><\/pre>\n<p>\u0420\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442 <code style=\"background:#eef0f3;color:#24292f;border-radius:4px;padding:1px 5px;font-size:0.92em;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace\">dotnet build Shop.App<\/code> (\u043f\u0443\u0442\u0438 \u0441\u043e\u043a\u0440\u0430\u0449\u0435\u043d\u044b):<\/p>\n<pre style=\"background:#282c34;color:#abb2bf;border-radius:8px;padding:16px 20px;margin:20px 0;overflow-x:auto;font-size:14px;line-height:1.55;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace\"><code style=\"background:none\">Shop.App\/Program.cs(7,23): error CS1061: &#x27;Account&#x27; does not contain a definition for &#x27;_balance&#x27; and no accessible extension method &#x27;_balance&#x27; accepting a first argument of type &#x27;Account&#x27; could be found (are you missing a using directive or an assembly reference?)\nShop.App\/Program.cs(8,23): error CS1061: &#x27;Account&#x27; does not contain a definition for &#x27;AuditTag&#x27; and no accessible extension method &#x27;AuditTag&#x27; accepting a first argument of type &#x27;Account&#x27; could be found (are you missing a using directive or an assembly reference?)\nShop.App\/Program.cs(9,23): error CS0122: &#x27;Account.Version&#x27; is inaccessible due to its protection level\nShop.App\/Program.cs(10,16): error CS0122: &#x27;FeeCalculator&#x27; is inaccessible due to its protection level\nShop.App\/Program.cs(16,27): error CS0103: The name &#x27;Frozen&#x27; does not exist in the current context\n<\/code><\/pre>\n<p>\u0427\u0442\u043e \u0437\u0434\u0435\u0441\u044c \u0432\u0438\u0434\u043d\u043e:<\/p>\n<ul>\n<li><code style=\"background:#eef0f3;color:#24292f;border-radius:4px;padding:1px 5px;font-size:0.92em;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace\">Operations<\/code> (<code style=\"background:#eef0f3;color:#24292f;border-radius:4px;padding:1px 5px;font-size:0.92em;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace\">protected<\/code>) \u0438 <code style=\"background:#eef0f3;color:#24292f;border-radius:4px;padding:1px 5px;font-size:0.92em;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace\">Version<\/code> (<code style=\"background:#eef0f3;color:#24292f;border-radius:4px;padding:1px 5px;font-size:0.92em;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace\">protected internal<\/code>) \u0432\u043d\u0443\u0442\u0440\u0438 \u043d\u0430\u0441\u043b\u0435\u0434\u043d\u0438\u043a\u0430 <code style=\"background:#eef0f3;color:#24292f;border-radius:4px;padding:1px 5px;font-size:0.92em;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace\">VipAccount<\/code> \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u044b, \u0445\u043e\u0442\u044f \u043e\u043d \u0432 \u0434\u0440\u0443\u0433\u043e\u0439 \u0441\u0431\u043e\u0440\u043a\u0435. \u041e\u0448\u0438\u0431\u043e\u043a \u043d\u0430 \u0441\u0442\u0440\u043e\u043a\u0430\u0445 14-15 \u043d\u0435\u0442.<\/li>\n<li><code style=\"background:#eef0f3;color:#24292f;border-radius:4px;padding:1px 5px;font-size:0.92em;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace\">Frozen<\/code> (<code style=\"background:#eef0f3;color:#24292f;border-radius:4px;padding:1px 5px;font-size:0.92em;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace\">private protected<\/code>) \u043d\u0430\u0441\u043b\u0435\u0434\u043d\u0438\u043a\u0443 \u0438\u0437 \u0434\u0440\u0443\u0433\u043e\u0439 \u0441\u0431\u043e\u0440\u043a\u0438 \u043d\u0435\u0434\u043e\u0441\u0442\u0443\u043f\u0435\u043d: <code style=\"background:#eef0f3;color:#24292f;border-radius:4px;padding:1px 5px;font-size:0.92em;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace\">SavingsAccount<\/code> \u0432 <code style=\"background:#eef0f3;color:#24292f;border-radius:4px;padding:1px 5px;font-size:0.92em;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace\">Shop.Core<\/code> \u0435\u0433\u043e \u043c\u0435\u043d\u044f\u0442\u044c \u043c\u043e\u0436\u0435\u0442, <code style=\"background:#eef0f3;color:#24292f;border-radius:4px;padding:1px 5px;font-size:0.92em;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace\">VipAccount<\/code> \u0432 <code style=\"background:#eef0f3;color:#24292f;border-radius:4px;padding:1px 5px;font-size:0.92em;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace\">Shop.App<\/code> &#8212; \u043d\u0435\u0442.<\/li>\n<li>\u0414\u043b\u044f <code style=\"background:#eef0f3;color:#24292f;border-radius:4px;padding:1px 5px;font-size:0.92em;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace\">private<\/code> \u0438 <code style=\"background:#eef0f3;color:#24292f;border-radius:4px;padding:1px 5px;font-size:0.92em;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace\">internal<\/code> \u0447\u043b\u0435\u043d\u043e\u0432 \u0447\u0443\u0436\u043e\u0439 \u0441\u0431\u043e\u0440\u043a\u0438 \u043a\u043e\u043c\u043f\u0438\u043b\u044f\u0442\u043e\u0440 \u0432 \u044d\u0442\u043e\u043c \u043f\u0440\u043e\u0433\u043e\u043d\u0435 \u043f\u0438\u0448\u0435\u0442 \u043d\u0435 \u00ab\u043d\u0435\u0434\u043e\u0441\u0442\u0443\u043f\u0435\u043d\u00bb (CS0122), \u0430 \u00ab\u043d\u0435 \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u0442 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u044f\u00bb (CS1061): \u0438\u0437 \u0441\u043a\u043e\u043c\u043f\u0438\u043b\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u043e\u0439 \u0447\u0443\u0436\u043e\u0439 \u0441\u0431\u043e\u0440\u043a\u0438 \u043e\u043d \u0442\u0430\u043a\u0438\u0435 \u0447\u043b\u0435\u043d\u044b \u043d\u0435 \u0437\u0430\u0433\u0440\u0443\u0436\u0430\u0435\u0442. \u0414\u043b\u044f <code style=\"background:#eef0f3;color:#24292f;border-radius:4px;padding:1px 5px;font-size:0.92em;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace\">Frozen<\/code> \u043e\u0448\u0438\u0431\u043a\u0430 CS0103 \u043f\u043e\u044f\u0432\u0438\u043b\u0430\u0441\u044c \u043f\u043e\u0442\u043e\u043c\u0443, \u0447\u0442\u043e SDK \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e \u0441\u043e\u0431\u0438\u0440\u0430\u0435\u0442 \u0434\u043b\u044f \u0441\u0441\u044b\u043b\u043e\u043a \u0443\u0440\u0435\u0437\u0430\u043d\u043d\u0443\u044e \u0440\u0435\u0444\u0435\u0440\u0435\u043d\u0441\u043d\u0443\u044e \u0441\u0431\u043e\u0440\u043a\u0443 \u0431\u0435\u0437 <code style=\"background:#eef0f3;color:#24292f;border-radius:4px;padding:1px 5px;font-size:0.92em;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace\">private protected<\/code> \u0447\u043b\u0435\u043d\u043e\u0432; \u0441 <code style=\"background:#eef0f3;color:#24292f;border-radius:4px;padding:1px 5px;font-size:0.92em;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace\">-p:ProduceReferenceAssembly=false<\/code> \u0442\u0430 \u0436\u0435 \u0441\u0442\u0440\u043e\u043a\u0430 \u0434\u0430\u0435\u0442 CS0122. \u0415\u0441\u043b\u0438 \u0443\u0432\u0438\u0434\u0435\u043b\u0438 CS1061 \u0438\u043b\u0438 CS0103 \u043d\u0430 \u0447\u043b\u0435\u043d\u0435, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0442\u043e\u0447\u043d\u043e \u0435\u0441\u0442\u044c \u0432 \u043a\u043b\u0430\u0441\u0441\u0435, \u043f\u0440\u043e\u0432\u0435\u0440\u044c\u0442\u0435 \u0435\u0433\u043e \u043c\u043e\u0434\u0438\u0444\u0438\u043a\u0430\u0442\u043e\u0440.<\/li>\n<\/ul>\n<p>\u0418\u0441\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0435 &#8212; \u043e\u0431\u0440\u0430\u0449\u0430\u0442\u044c\u0441\u044f \u0442\u043e\u043b\u044c\u043a\u043e \u0447\u0435\u0440\u0435\u0437 \u043e\u0442\u043a\u0440\u044b\u0442\u044b\u0439 \u043a\u043e\u043d\u0442\u0440\u0430\u043a\u0442:<\/p>\n<pre style=\"background:#282c34;color:#abb2bf;border-radius:8px;padding:16px 20px;margin:20px 0;overflow-x:auto;font-size:14px;line-height:1.55;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace\"><code style=\"background:none\"><span style=\"color: #C678DD\">using<\/span><span style=\"color: #ABB2BF\"> <\/span><span style=\"color: #E06C75\">Shop.Core<\/span><span style=\"color: #ABB2BF\">;<\/span>\n\n<span style=\"color: #E5C07B\">var<\/span><span style=\"color: #ABB2BF\"> <\/span><span style=\"color: #E06C75\">acc<\/span><span style=\"color: #ABB2BF\"> <\/span><span style=\"color: #56B6C2\">=<\/span><span style=\"color: #ABB2BF\"> <\/span><span style=\"color: #C678DD\">new<\/span><span style=\"color: #ABB2BF\"> <\/span><span style=\"color: #E06C75\">Account<\/span><span style=\"color: #ABB2BF\">();<\/span>\n<span style=\"color: #E06C75\">acc<\/span><span style=\"color: #ABB2BF\">.<\/span><span style=\"color: #E06C75\">Deposit<\/span><span style=\"color: #ABB2BF\">(<\/span><span style=\"color: #D19A66\">100<\/span><span style=\"color: #ABB2BF\">);<\/span>\n<span style=\"color: #E06C75\">Console<\/span><span style=\"color: #ABB2BF\">.<\/span><span style=\"color: #E06C75\">WriteLine<\/span><span style=\"color: #ABB2BF\">(<\/span><span style=\"color: #98C379\">$\"\u0411\u0430\u043b\u0430\u043d\u0441: {acc.Balance}\"<\/span><span style=\"color: #ABB2BF\">);<\/span>\n\n<span style=\"color: #E5C07B\">var<\/span><span style=\"color: #ABB2BF\"> <\/span><span style=\"color: #E06C75\">vip<\/span><span style=\"color: #ABB2BF\"> <\/span><span style=\"color: #56B6C2\">=<\/span><span style=\"color: #ABB2BF\"> <\/span><span style=\"color: #C678DD\">new<\/span><span style=\"color: #ABB2BF\"> <\/span><span style=\"color: #E06C75\">VipAccount<\/span><span style=\"color: #ABB2BF\">();<\/span>\n<span style=\"color: #E06C75\">vip<\/span><span style=\"color: #ABB2BF\">.<\/span><span style=\"color: #E06C75\">Deposit<\/span><span style=\"color: #ABB2BF\">(<\/span><span style=\"color: #D19A66\">50<\/span><span style=\"color: #ABB2BF\">);<\/span>\n<span style=\"color: #E06C75\">vip<\/span><span style=\"color: #ABB2BF\">.<\/span><span style=\"color: #E06C75\">Deposit<\/span><span style=\"color: #ABB2BF\">(<\/span><span style=\"color: #D19A66\">25<\/span><span style=\"color: #ABB2BF\">);<\/span>\n<span style=\"color: #E06C75\">Console<\/span><span style=\"color: #ABB2BF\">.<\/span><span style=\"color: #E06C75\">WriteLine<\/span><span style=\"color: #ABB2BF\">(<\/span><span style=\"color: #98C379\">$\"\u041e\u043f\u0435\u0440\u0430\u0446\u0438\u0439 \u0443 VIP: {vip.Ops()}, \u0432\u0435\u0440\u0441\u0438\u044f: {vip.Ver()}\"<\/span><span style=\"color: #ABB2BF\">);<\/span>\n\n<span style=\"color: #C678DD\">try<\/span><span style=\"color: #ABB2BF\"> { <\/span><span style=\"color: #E06C75\">acc<\/span><span style=\"color: #ABB2BF\">.<\/span><span style=\"color: #E06C75\">Deposit<\/span><span style=\"color: #ABB2BF\">(<\/span><span style=\"color: #56B6C2\">-<\/span><span style=\"color: #D19A66\">5<\/span><span style=\"color: #ABB2BF\">); }<\/span>\n<span style=\"color: #C678DD\">catch<\/span><span style=\"color: #ABB2BF\"> (<\/span><span style=\"color: #E06C75\">ArgumentOutOfRangeException<\/span><span style=\"color: #ABB2BF\"> <\/span><span style=\"color: #E06C75\">e<\/span><span style=\"color: #ABB2BF\">) { <\/span><span style=\"color: #E06C75\">Console<\/span><span style=\"color: #ABB2BF\">.<\/span><span style=\"color: #E06C75\">WriteLine<\/span><span style=\"color: #ABB2BF\">(<\/span><span style=\"color: #E06C75\">e<\/span><span style=\"color: #ABB2BF\">.<\/span><span style=\"color: #E06C75\">Message<\/span><span style=\"color: #ABB2BF\">); }<\/span>\n\n<span style=\"color: #C678DD\">class<\/span><span style=\"color: #ABB2BF\"> <\/span><span style=\"color: #E5C07B\">VipAccount<\/span><span style=\"color: #ABB2BF\"> : <\/span><span style=\"color: #E06C75\">Account<\/span>\n<span style=\"color: #ABB2BF\">{<\/span>\n<span style=\"color: #ABB2BF\">    <\/span><span style=\"color: #C678DD\">public<\/span><span style=\"color: #ABB2BF\"> <\/span><span style=\"color: #E5C07B\">int<\/span><span style=\"color: #ABB2BF\"> <\/span><span style=\"color: #61AFEF; font-weight: bold\">Ops<\/span><span style=\"color: #ABB2BF\">() <\/span><span style=\"color: #56B6C2\">=&gt;<\/span><span style=\"color: #ABB2BF\"> <\/span><span style=\"color: #E06C75\">Operations<\/span><span style=\"color: #ABB2BF\">;<\/span>\n<span style=\"color: #ABB2BF\">    <\/span><span style=\"color: #C678DD\">public<\/span><span style=\"color: #ABB2BF\"> <\/span><span style=\"color: #E5C07B\">int<\/span><span style=\"color: #ABB2BF\"> <\/span><span style=\"color: #61AFEF; font-weight: bold\">Ver<\/span><span style=\"color: #ABB2BF\">() <\/span><span style=\"color: #56B6C2\">=&gt;<\/span><span style=\"color: #ABB2BF\"> <\/span><span style=\"color: #E06C75\">Version<\/span><span style=\"color: #ABB2BF\">;<\/span>\n<span style=\"color: #ABB2BF\">}<\/span><\/code><\/pre>\n<p><code style=\"background:#eef0f3;color:#24292f;border-radius:4px;padding:1px 5px;font-size:0.92em;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace\">dotnet run --project Shop.App<\/code> \u043f\u0435\u0447\u0430\u0442\u0430\u0435\u0442:<\/p>\n<pre style=\"background:#282c34;color:#abb2bf;border-radius:8px;padding:16px 20px;margin:20px 0;overflow-x:auto;font-size:14px;line-height:1.55;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace\"><code style=\"background:none\">\u0411\u0430\u043b\u0430\u043d\u0441: 100\n\u041e\u043f\u0435\u0440\u0430\u0446\u0438\u0439 \u0443 VIP: 2, \u0432\u0435\u0440\u0441\u0438\u044f: 1\n\u0421\u0443\u043c\u043c\u0430 \u0434\u043e\u043b\u0436\u043d\u0430 \u0431\u044b\u0442\u044c \u0431\u043e\u043b\u044c\u0448\u0435 \u043d\u0443\u043b\u044f (Parameter &#x27;amount&#x27;)\n<\/code><\/pre>\n<p>\u041e\u0442\u0440\u0438\u0446\u0430\u0442\u0435\u043b\u044c\u043d\u0443\u044e \u0441\u0443\u043c\u043c\u0443 \u043d\u0435 \u043f\u0440\u043e\u043f\u0443\u0441\u0442\u0438\u043b <code style=\"background:#eef0f3;color:#24292f;border-radius:4px;padding:1px 5px;font-size:0.92em;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace\">Deposit<\/code>, \u0430 \u0437\u0430\u043f\u0438\u0441\u0430\u0442\u044c \u0432 <code style=\"background:#eef0f3;color:#24292f;border-radius:4px;padding:1px 5px;font-size:0.92em;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace\">_balance<\/code> \u043d\u0430\u043f\u0440\u044f\u043c\u0443\u044e \u0441\u043d\u0430\u0440\u0443\u0436\u0438 \u043d\u0435\u043b\u044c\u0437\u044f &#8212; \u0432 \u044d\u0442\u043e\u043c \u0438 \u0441\u043e\u0441\u0442\u043e\u0438\u0442 \u0438\u043d\u043a\u0430\u043f\u0441\u0443\u043b\u044f\u0446\u0438\u044f.<\/p>\n<h2 id=\"s4\">\u041c\u043e\u0434\u0438\u0444\u0438\u043a\u0430\u0442\u043e\u0440\u044b \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e<\/h2>\n<p>\u0415\u0441\u043b\u0438 \u043c\u043e\u0434\u0438\u0444\u0438\u043a\u0430\u0442\u043e\u0440 \u043d\u0435 \u0443\u043a\u0430\u0437\u0430\u043d, \u0434\u0435\u0439\u0441\u0442\u0432\u0443\u0435\u0442 \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u0435. \u041e\u043d\u043e \u0437\u0430\u0432\u0438\u0441\u0438\u0442 \u043e\u0442 \u0442\u043e\u0433\u043e, \u0433\u0434\u0435 \u043e\u0431\u044a\u044f\u0432\u043b\u0435\u043d \u044d\u043b\u0435\u043c\u0435\u043d\u0442:<\/p>\n<table>\n<thead>\n<tr>\n<th>\u0427\u0442\u043e \u043e\u0431\u044a\u044f\u0432\u043b\u0435\u043d\u043e<\/th>\n<th>\u041f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e<\/th>\n<th>\u0427\u0442\u043e \u0435\u0449\u0435 \u0440\u0430\u0437\u0440\u0435\u0448\u0435\u043d\u043e<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>\u041a\u043b\u0430\u0441\u0441, \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0430, \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441, enum, record \u0432\u0435\u0440\u0445\u043d\u0435\u0433\u043e \u0443\u0440\u043e\u0432\u043d\u044f<\/td>\n<td><code style=\"background:#eef0f3;color:#24292f;border-radius:4px;padding:1px 5px;font-size:0.92em;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace\">internal<\/code><\/td>\n<td><code style=\"background:#eef0f3;color:#24292f;border-radius:4px;padding:1px 5px;font-size:0.92em;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace\">public<\/code>, <code style=\"background:#eef0f3;color:#24292f;border-radius:4px;padding:1px 5px;font-size:0.92em;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace\">file<\/code><\/td>\n<\/tr>\n<tr>\n<td>\u0427\u043b\u0435\u043d \u043a\u043b\u0430\u0441\u0441\u0430 (\u043f\u043e\u043b\u0435, \u043c\u0435\u0442\u043e\u0434, \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u043e)<\/td>\n<td><code style=\"background:#eef0f3;color:#24292f;border-radius:4px;padding:1px 5px;font-size:0.92em;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace\">private<\/code><\/td>\n<td>\u0432\u0441\u0435 \u0448\u0435\u0441\u0442\u044c \u0443\u0440\u043e\u0432\u043d\u0435\u0439<\/td>\n<\/tr>\n<tr>\n<td>\u0427\u043b\u0435\u043d \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u044b<\/td>\n<td><code style=\"background:#eef0f3;color:#24292f;border-radius:4px;padding:1px 5px;font-size:0.92em;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace\">private<\/code><\/td>\n<td><code style=\"background:#eef0f3;color:#24292f;border-radius:4px;padding:1px 5px;font-size:0.92em;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace\">public<\/code>, <code style=\"background:#eef0f3;color:#24292f;border-radius:4px;padding:1px 5px;font-size:0.92em;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace\">internal<\/code>, <code style=\"background:#eef0f3;color:#24292f;border-radius:4px;padding:1px 5px;font-size:0.92em;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace\">private<\/code><\/td>\n<\/tr>\n<tr>\n<td>\u0412\u043b\u043e\u0436\u0435\u043d\u043d\u044b\u0439 \u0442\u0438\u043f<\/td>\n<td><code style=\"background:#eef0f3;color:#24292f;border-radius:4px;padding:1px 5px;font-size:0.92em;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace\">private<\/code><\/td>\n<td>\u043a\u0430\u043a \u0443 \u0447\u043b\u0435\u043d\u043e\u0432<\/td>\n<\/tr>\n<tr>\n<td>\u0427\u043b\u0435\u043d \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u0430<\/td>\n<td><code style=\"background:#eef0f3;color:#24292f;border-radius:4px;padding:1px 5px;font-size:0.92em;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace\">public<\/code><\/td>\n<td>\u0441 C# 8 \u043c\u043e\u0436\u043d\u043e \u0443\u043a\u0430\u0437\u044b\u0432\u0430\u0442\u044c \u0434\u0440\u0443\u0433\u0438\u0435<\/td>\n<\/tr>\n<tr>\n<td>\u042d\u043b\u0435\u043c\u0435\u043d\u0442 enum<\/td>\n<td><code style=\"background:#eef0f3;color:#24292f;border-radius:4px;padding:1px 5px;font-size:0.92em;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace\">public<\/code><\/td>\n<td>\u043c\u043e\u0434\u0438\u0444\u0438\u043a\u0430\u0442\u043e\u0440\u044b \u043d\u0435 \u0443\u043a\u0430\u0437\u044b\u0432\u0430\u044e\u0442\u0441\u044f<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u041e\u0442\u0441\u044e\u0434\u0430 \u043f\u0440\u0430\u043a\u0442\u0438\u0447\u043d\u043e\u0435 \u0441\u043b\u0435\u0434\u0441\u0442\u0432\u0438\u0435: <code style=\"background:#eef0f3;color:#24292f;border-radius:4px;padding:1px 5px;font-size:0.92em;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace\">class Helper { }<\/code> \u0431\u0435\u0437 \u0441\u043b\u043e\u0432\u0430 <code style=\"background:#eef0f3;color:#24292f;border-radius:4px;padding:1px 5px;font-size:0.92em;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace\">public<\/code> \u0443\u0436\u0435 <code style=\"background:#eef0f3;color:#24292f;border-radius:4px;padding:1px 5px;font-size:0.92em;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace\">internal<\/code>, \u0438 \u0438\u0437 \u0434\u0440\u0443\u0433\u043e\u0433\u043e \u043f\u0440\u043e\u0435\u043a\u0442\u0430 \u0435\u0433\u043e \u043d\u0435 \u0432\u0438\u0434\u043d\u043e.<\/p>\n<h2 id=\"s5\">\u041e\u0448\u0438\u0431\u043a\u0438, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0432\u0441\u0442\u0440\u0435\u0447\u0430\u044e\u0442\u0441\u044f \u0447\u0430\u0449\u0435 \u0432\u0441\u0435\u0433\u043e<\/h2>\n<p>\u0412\u0441\u0435 \u0447\u0435\u0442\u044b\u0440\u0435 \u0441\u043b\u0443\u0447\u0430\u044f \u043f\u0440\u043e\u0432\u0435\u0440\u0435\u043d\u044b \u0441\u0431\u043e\u0440\u043a\u043e\u0439 \u043d\u0430 .NET 10.<\/p>\n<p><strong>\u0422\u0438\u043f \u0432\u0435\u0440\u0445\u043d\u0435\u0433\u043e \u0443\u0440\u043e\u0432\u043d\u044f \u043d\u0435\u043b\u044c\u0437\u044f \u0441\u0434\u0435\u043b\u0430\u0442\u044c <code style=\"background:#eef0f3;color:#24292f;border-radius:4px;padding:1px 5px;font-size:0.92em;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace\">private<\/code>.<\/strong> \u041a\u043e\u0434 <code style=\"background:#eef0f3;color:#24292f;border-radius:4px;padding:1px 5px;font-size:0.92em;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace\">private class TopLevel { }<\/code> \u0432 \u043f\u0440\u043e\u0441\u0442\u0440\u0430\u043d\u0441\u0442\u0432\u0435 \u0438\u043c\u0435\u043d \u0434\u0430\u0435\u0442 <code style=\"background:#eef0f3;color:#24292f;border-radius:4px;padding:1px 5px;font-size:0.92em;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace\">CS1527: Elements defined in a namespace cannot be explicitly declared as private, protected, protected internal, or private protected<\/code>. \u041d\u0443\u0436\u0435\u043d <code style=\"background:#eef0f3;color:#24292f;border-radius:4px;padding:1px 5px;font-size:0.92em;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace\">internal<\/code> (\u0438\u043b\u0438 <code style=\"background:#eef0f3;color:#24292f;border-radius:4px;padding:1px 5px;font-size:0.92em;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace\">file<\/code>, \u0435\u0441\u043b\u0438 \u0442\u0438\u043f \u043d\u0443\u0436\u0435\u043d \u0442\u043e\u043b\u044c\u043a\u043e \u0432 \u043e\u0434\u043d\u043e\u043c \u0444\u0430\u0439\u043b\u0435).<\/p>\n<p><strong>\u0423 \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u044b \u043d\u0435\u0442 <code style=\"background:#eef0f3;color:#24292f;border-radius:4px;padding:1px 5px;font-size:0.92em;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace\">protected<\/code>.<\/strong> \u0421\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u044b \u043d\u0435 \u043d\u0430\u0441\u043b\u0435\u0434\u0443\u044e\u0442\u0441\u044f, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 <code style=\"background:#eef0f3;color:#24292f;border-radius:4px;padding:1px 5px;font-size:0.92em;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace\">struct Point { protected int X; }<\/code> \u0434\u0430\u0435\u0442 <code style=\"background:#eef0f3;color:#24292f;border-radius:4px;padding:1px 5px;font-size:0.92em;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace\">CS0666: 'Point.X': new protected member declared in struct<\/code>.<\/p>\n<p><strong><code style=\"background:#eef0f3;color:#24292f;border-radius:4px;padding:1px 5px;font-size:0.92em;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace\">protected<\/code> \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u0442\u043e\u043b\u044c\u043a\u043e \u0447\u0435\u0440\u0435\u0437 \u0441\u0432\u043e\u0439 \u0442\u0438\u043f.<\/strong> \u041d\u0430\u0441\u043b\u0435\u0434\u043d\u0438\u043a \u0432\u0438\u0434\u0438\u0442 \u0437\u0430\u0449\u0438\u0449\u0435\u043d\u043d\u044b\u0439 \u0447\u043b\u0435\u043d \u0443 \u0441\u0435\u0431\u044f \u0438 \u0443 \u043e\u0431\u044a\u0435\u043a\u0442\u043e\u0432 \u0441\u0432\u043e\u0435\u0433\u043e \u0442\u0438\u043f\u0430, \u043d\u043e \u043d\u0435 \u0443 \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u043b\u044c\u043d\u043e\u0433\u043e \u043e\u0431\u044a\u0435\u043a\u0442\u0430 \u0431\u0430\u0437\u043e\u0432\u043e\u0433\u043e \u043a\u043b\u0430\u0441\u0441\u0430:<\/p>\n<pre style=\"background:#282c34;color:#abb2bf;border-radius:8px;padding:16px 20px;margin:20px 0;overflow-x:auto;font-size:14px;line-height:1.55;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace\"><code style=\"background:none\"><span style=\"color: #C678DD\">class<\/span><span style=\"color: #ABB2BF\"> <\/span><span style=\"color: #E5C07B\">Base<\/span><span style=\"color: #ABB2BF\"> { <\/span><span style=\"color: #C678DD\">protected<\/span><span style=\"color: #ABB2BF\"> <\/span><span style=\"color: #E5C07B\">int<\/span><span style=\"color: #ABB2BF\"> <\/span><span style=\"color: #E06C75\">Secret<\/span><span style=\"color: #ABB2BF\"> <\/span><span style=\"color: #56B6C2\">=<\/span><span style=\"color: #ABB2BF\"> <\/span><span style=\"color: #D19A66\">42<\/span><span style=\"color: #ABB2BF\">; }<\/span>\n<span style=\"color: #C678DD\">class<\/span><span style=\"color: #ABB2BF\"> <\/span><span style=\"color: #E5C07B\">Derived<\/span><span style=\"color: #ABB2BF\"> : <\/span><span style=\"color: #E06C75\">Base<\/span>\n<span style=\"color: #ABB2BF\">{<\/span>\n<span style=\"color: #ABB2BF\">    <\/span><span style=\"color: #E5C07B\">int<\/span><span style=\"color: #ABB2BF\"> <\/span><span style=\"color: #61AFEF; font-weight: bold\">Peek<\/span><span style=\"color: #ABB2BF\">(<\/span><span style=\"color: #E06C75\">Base<\/span><span style=\"color: #ABB2BF\"> <\/span><span style=\"color: #E06C75\">other<\/span><span style=\"color: #ABB2BF\">) <\/span><span style=\"color: #56B6C2\">=&gt;<\/span><span style=\"color: #ABB2BF\"> <\/span><span style=\"color: #E06C75\">other<\/span><span style=\"color: #ABB2BF\">.<\/span><span style=\"color: #E06C75\">Secret<\/span><span style=\"color: #ABB2BF\">;    <\/span><span style=\"color: #7F848E\">\/\/ \u043e\u0448\u0438\u0431\u043a\u0430<\/span>\n<span style=\"color: #ABB2BF\">    <\/span><span style=\"color: #E5C07B\">int<\/span><span style=\"color: #ABB2BF\"> <\/span><span style=\"color: #61AFEF; font-weight: bold\">Mine<\/span><span style=\"color: #ABB2BF\">(<\/span><span style=\"color: #E06C75\">Derived<\/span><span style=\"color: #ABB2BF\"> <\/span><span style=\"color: #E06C75\">other<\/span><span style=\"color: #ABB2BF\">) <\/span><span style=\"color: #56B6C2\">=&gt;<\/span><span style=\"color: #ABB2BF\"> <\/span><span style=\"color: #E06C75\">other<\/span><span style=\"color: #ABB2BF\">.<\/span><span style=\"color: #E06C75\">Secret<\/span><span style=\"color: #ABB2BF\">; <\/span><span style=\"color: #7F848E\">\/\/ \u043c\u043e\u0436\u043d\u043e<\/span>\n<span style=\"color: #ABB2BF\">}<\/span><\/code><\/pre>\n<pre style=\"background:#282c34;color:#abb2bf;border-radius:8px;padding:16px 20px;margin:20px 0;overflow-x:auto;font-size:14px;line-height:1.55;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace\"><code style=\"background:none\">error CS1540: Cannot access protected member &#x27;Base.Secret&#x27; via a qualifier of type &#x27;Base&#x27;; the qualifier must be of type &#x27;Derived&#x27; (or derived from it)\n<\/code><\/pre>\n<p><strong>\u041e\u0442\u043a\u0440\u044b\u0442\u044b\u0439 \u043c\u0435\u0442\u043e\u0434 \u043d\u0435 \u043c\u043e\u0436\u0435\u0442 \u043e\u0442\u0434\u0430\u0432\u0430\u0442\u044c \u043c\u0435\u043d\u0435\u0435 \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u044b\u0439 \u0442\u0438\u043f.<\/strong> \u0415\u0441\u043b\u0438 <code style=\"background:#eef0f3;color:#24292f;border-radius:4px;padding:1px 5px;font-size:0.92em;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace\">Order<\/code> \u043f\u043e\u043c\u0435\u0447\u0435\u043d <code style=\"background:#eef0f3;color:#24292f;border-radius:4px;padding:1px 5px;font-size:0.92em;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace\">internal<\/code>, \u0430 \u043c\u0435\u0442\u043e\u0434 <code style=\"background:#eef0f3;color:#24292f;border-radius:4px;padding:1px 5px;font-size:0.92em;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace\">public Order Create()<\/code> \u043b\u0435\u0436\u0438\u0442 \u0432 <code style=\"background:#eef0f3;color:#24292f;border-radius:4px;padding:1px 5px;font-size:0.92em;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace\">public<\/code>-\u043a\u043b\u0430\u0441\u0441\u0435, \u0431\u0443\u0434\u0435\u0442 <code style=\"background:#eef0f3;color:#24292f;border-radius:4px;padding:1px 5px;font-size:0.92em;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace\">CS0050: Inconsistent accessibility: return type 'Order' is less accessible than method 'OrderService.Create()'<\/code>. \u0420\u0435\u0448\u0435\u043d\u0438\u0435 &#8212; \u043b\u0438\u0431\u043e \u043e\u0442\u043a\u0440\u044b\u0442\u044c <code style=\"background:#eef0f3;color:#24292f;border-radius:4px;padding:1px 5px;font-size:0.92em;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace\">Order<\/code>, \u043b\u0438\u0431\u043e \u0441\u0443\u0437\u0438\u0442\u044c \u043c\u0435\u0442\u043e\u0434 \u0434\u043e <code style=\"background:#eef0f3;color:#24292f;border-radius:4px;padding:1px 5px;font-size:0.92em;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace\">internal<\/code>.<\/p>\n<h2 id=\"s6\">internal \u0438 \u0442\u0435\u0441\u0442\u044b: InternalsVisibleTo<\/h2>\n<p>\u0422\u0438\u043f\u0438\u0447\u043d\u0430\u044f \u0441\u0438\u0442\u0443\u0430\u0446\u0438\u044f: \u043b\u043e\u0433\u0438\u043a\u0430 \u0432 <code style=\"background:#eef0f3;color:#24292f;border-radius:4px;padding:1px 5px;font-size:0.92em;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace\">internal<\/code>-\u043a\u043b\u0430\u0441\u0441\u0435, \u0430 \u0442\u0435\u0441\u0442\u044b \u043b\u0435\u0436\u0430\u0442 \u0432 \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u043e\u043c \u043f\u0440\u043e\u0435\u043a\u0442\u0435, \u0442\u043e \u0435\u0441\u0442\u044c \u0432 \u0434\u0440\u0443\u0433\u043e\u0439 \u0441\u0431\u043e\u0440\u043a\u0435. \u0427\u0442\u043e\u0431\u044b \u043d\u0435 \u043e\u0442\u043a\u0440\u044b\u0432\u0430\u0442\u044c \u043a\u043b\u0430\u0441\u0441 \u0432\u0441\u0435\u043c \u0440\u0430\u0434\u0438 \u0442\u0435\u0441\u0442\u043e\u0432, \u0441\u0431\u043e\u0440\u043a\u0430 \u043c\u043e\u0436\u0435\u0442 \u044f\u0432\u043d\u043e \u0434\u043e\u0432\u0435\u0440\u0438\u0442\u044c \u0441\u0432\u043e\u0438 <code style=\"background:#eef0f3;color:#24292f;border-radius:4px;padding:1px 5px;font-size:0.92em;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace\">internal<\/code>-\u0447\u043b\u0435\u043d\u044b \u043a\u043e\u043d\u043a\u0440\u0435\u0442\u043d\u043e\u0439 \u0434\u0440\u0443\u0433\u043e\u0439 \u0441\u0431\u043e\u0440\u043a\u0435. \u0412 SDK-\u043f\u0440\u043e\u0435\u043a\u0442\u0435 \u044d\u0442\u043e \u043e\u0434\u043d\u0430 \u0441\u0442\u0440\u043e\u043a\u0430 \u0432 <code style=\"background:#eef0f3;color:#24292f;border-radius:4px;padding:1px 5px;font-size:0.92em;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace\">Shop.Core.csproj<\/code>:<\/p>\n<pre style=\"background:#282c34;color:#abb2bf;border-radius:8px;padding:16px 20px;margin:20px 0;overflow-x:auto;font-size:14px;line-height:1.55;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace\"><code style=\"background:none\"><span style=\"color: #E06C75\">&lt;ItemGroup&gt;<\/span>\n<span style=\"color: #ABB2BF\">  <\/span><span style=\"color: #E06C75\">&lt;InternalsVisibleTo<\/span><span style=\"color: #ABB2BF\"> <\/span><span style=\"color: #E06C75\">Include=<\/span><span style=\"color: #98C379\">\"Shop.App\"<\/span><span style=\"color: #ABB2BF\"> <\/span><span style=\"color: #E06C75\">\/&gt;<\/span>\n<span style=\"color: #E06C75\">&lt;\/ItemGroup&gt;<\/span><\/code><\/pre>\n<p>\u041f\u043e\u0441\u043b\u0435 \u044d\u0442\u043e\u0433\u043e <code style=\"background:#eef0f3;color:#24292f;border-radius:4px;padding:1px 5px;font-size:0.92em;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace\">Shop.App<\/code> \u0432\u0438\u0434\u0438\u0442 <code style=\"background:#eef0f3;color:#24292f;border-radius:4px;padding:1px 5px;font-size:0.92em;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace\">acc.AuditTag<\/code> \u0438 <code style=\"background:#eef0f3;color:#24292f;border-radius:4px;padding:1px 5px;font-size:0.92em;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace\">new FeeCalculator()<\/code>: \u0432 \u043f\u0440\u043e\u0433\u043e\u043d\u0435 <code style=\"background:#eef0f3;color:#24292f;border-radius:4px;padding:1px 5px;font-size:0.92em;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace\">new FeeCalculator().Fee(200)<\/code> \u0432\u0435\u0440\u043d\u0443\u043b <code style=\"background:#eef0f3;color:#24292f;border-radius:4px;padding:1px 5px;font-size:0.92em;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace\">2.00<\/code>. \u0412 \u0440\u0435\u0430\u043b\u044c\u043d\u043e\u043c \u043f\u0440\u043e\u0435\u043a\u0442\u0435 \u0432 <code style=\"background:#eef0f3;color:#24292f;border-radius:4px;padding:1px 5px;font-size:0.92em;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace\">Include<\/code> \u043f\u0438\u0448\u0443\u0442 \u0438\u043c\u044f \u0442\u0435\u0441\u0442\u043e\u0432\u043e\u0439 \u0441\u0431\u043e\u0440\u043a\u0438, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440 <code style=\"background:#eef0f3;color:#24292f;border-radius:4px;padding:1px 5px;font-size:0.92em;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace\">Shop.Core.Tests<\/code>. \u0422\u043e\u0442 \u0436\u0435 \u044d\u0444\u0444\u0435\u043a\u0442 \u0434\u0430\u0435\u0442 \u0430\u0442\u0440\u0438\u0431\u0443\u0442 <code style=\"background:#eef0f3;color:#24292f;border-radius:4px;padding:1px 5px;font-size:0.92em;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace\">[assembly: InternalsVisibleTo(\"Shop.Core.Tests\")]<\/code> \u0432 \u043b\u044e\u0431\u043e\u043c \u0444\u0430\u0439\u043b\u0435 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0438.<\/p>\n<h2 id=\"s7\">file: \u0434\u043e\u0441\u0442\u0443\u043f \u0432 \u043f\u0440\u0435\u0434\u0435\u043b\u0430\u0445 \u043e\u0434\u043d\u043e\u0433\u043e \u0444\u0430\u0439\u043b\u0430<\/h2>\n<p>\u041c\u043e\u0434\u0438\u0444\u0438\u043a\u0430\u0442\u043e\u0440 <code style=\"background:#eef0f3;color:#24292f;border-radius:4px;padding:1px 5px;font-size:0.92em;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace\">file<\/code> (C# 11) &#8212; \u0435\u0434\u0438\u043d\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u0439, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0438\u0432\u0430\u0435\u0442 \u0434\u043e\u0441\u0442\u0443\u043f \u0444\u0430\u0439\u043b\u043e\u043c. \u041e\u043d \u043f\u0440\u0438\u043c\u0435\u043d\u0438\u043c \u0442\u043e\u043b\u044c\u043a\u043e \u043a \u0442\u0438\u043f\u0430\u043c, \u043d\u0435 \u043a \u0447\u043b\u0435\u043d\u0430\u043c:<\/p>\n<pre style=\"background:#282c34;color:#abb2bf;border-radius:8px;padding:16px 20px;margin:20px 0;overflow-x:auto;font-size:14px;line-height:1.55;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace\"><code style=\"background:none\"><span style=\"color: #7F848E\">\/\/ Helpers.cs<\/span>\n<span style=\"color: #C678DD\">file<\/span><span style=\"color: #ABB2BF\"> <\/span><span style=\"color: #C678DD\">class<\/span><span style=\"color: #ABB2BF\"> <\/span><span style=\"color: #E06C75\">Cache<\/span><span style=\"color: #ABB2BF\"> { <\/span><span style=\"color: #C678DD\">public<\/span><span style=\"color: #ABB2BF\"> <\/span><span style=\"color: #C678DD\">static<\/span><span style=\"color: #ABB2BF\"> <\/span><span style=\"color: #E5C07B\">int<\/span><span style=\"color: #ABB2BF\"> <\/span><span style=\"color: #E06C75\">Hits<\/span><span style=\"color: #ABB2BF\">; }<\/span>\n<span style=\"color: #C678DD\">class<\/span><span style=\"color: #ABB2BF\"> <\/span><span style=\"color: #E5C07B\">InSameFile<\/span><span style=\"color: #ABB2BF\"> { <\/span><span style=\"color: #E5C07B\">int<\/span><span style=\"color: #ABB2BF\"> <\/span><span style=\"color: #E06C75\">H<\/span><span style=\"color: #ABB2BF\">() <\/span><span style=\"color: #56B6C2\">=&gt;<\/span><span style=\"color: #ABB2BF\"> <\/span><span style=\"color: #E06C75\">Cache<\/span><span style=\"color: #ABB2BF\">.<\/span><span style=\"color: #E06C75\">Hits<\/span><span style=\"color: #ABB2BF\">; }   <\/span><span style=\"color: #7F848E\">\/\/ \u043c\u043e\u0436\u043d\u043e<\/span>\n\n<span style=\"color: #7F848E\">\/\/ Other.cs<\/span>\n<span style=\"color: #C678DD\">class<\/span><span style=\"color: #ABB2BF\"> <\/span><span style=\"color: #E5C07B\">InOtherFile<\/span><span style=\"color: #ABB2BF\"> { <\/span><span style=\"color: #E5C07B\">int<\/span><span style=\"color: #ABB2BF\"> <\/span><span style=\"color: #E06C75\">H<\/span><span style=\"color: #ABB2BF\">() <\/span><span style=\"color: #56B6C2\">=&gt;<\/span><span style=\"color: #ABB2BF\"> <\/span><span style=\"color: #E06C75\">Cache<\/span><span style=\"color: #ABB2BF\">.<\/span><span style=\"color: #E06C75\">Hits<\/span><span style=\"color: #ABB2BF\">; }  <\/span><span style=\"color: #7F848E\">\/\/ CS0103: The name 'Cache' does not exist in the current context<\/span><\/code><\/pre>\n<p>\u0418\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u0432 \u043e\u0441\u043d\u043e\u0432\u043d\u043e\u043c \u0432 \u0433\u0435\u043d\u0435\u0440\u0430\u0442\u043e\u0440\u0430\u0445 \u043a\u043e\u0434\u0430, \u0447\u0442\u043e\u0431\u044b \u0432\u0441\u043f\u043e\u043c\u043e\u0433\u0430\u0442\u0435\u043b\u044c\u043d\u044b\u0435 \u0442\u0438\u043f\u044b \u0438\u0437 \u0440\u0430\u0437\u043d\u044b\u0445 \u0444\u0430\u0439\u043b\u043e\u0432 \u043d\u0435 \u043a\u043e\u043d\u0444\u043b\u0438\u043a\u0442\u043e\u0432\u0430\u043b\u0438 \u043f\u043e \u0438\u043c\u0435\u043d\u0430\u043c. \u0412 \u043e\u0431\u044b\u0447\u043d\u043e\u043c \u043a\u043e\u0434\u0435 \u0447\u0430\u0449\u0435 \u0445\u0432\u0430\u0442\u0430\u0435\u0442 <code style=\"background:#eef0f3;color:#24292f;border-radius:4px;padding:1px 5px;font-size:0.92em;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace\">internal<\/code> \u0438\u043b\u0438 \u0432\u043b\u043e\u0436\u0435\u043d\u043d\u043e\u0433\u043e <code style=\"background:#eef0f3;color:#24292f;border-radius:4px;padding:1px 5px;font-size:0.92em;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace\">private<\/code>-\u043a\u043b\u0430\u0441\u0441\u0430.<\/p>\n<h2 id=\"s8\">\u0418\u043d\u043a\u0430\u043f\u0441\u0443\u043b\u044f\u0446\u0438\u044f \u0447\u0435\u0440\u0435\u0437 \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u0430<\/h2>\n<p>\u041c\u043e\u0434\u0438\u0444\u0438\u043a\u0430\u0442\u043e\u0440 \u043e\u0442\u0432\u0435\u0447\u0430\u0435\u0442 \u043d\u0430 \u0432\u043e\u043f\u0440\u043e\u0441 \u00ab\u043a\u0442\u043e \u043c\u043e\u0436\u0435\u0442 \u043e\u0431\u0440\u0430\u0442\u0438\u0442\u044c\u0441\u044f\u00bb, \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u043e &#8212; \u043d\u0430 \u0432\u043e\u043f\u0440\u043e\u0441 \u00ab\u0447\u0442\u043e \u043f\u0440\u0438 \u044d\u0442\u043e\u043c \u0440\u0430\u0437\u0440\u0435\u0448\u0435\u043d\u043e\u00bb. \u041f\u043e\u043b\u0435 \u0434\u0435\u043b\u0430\u044e\u0442 <code style=\"background:#eef0f3;color:#24292f;border-radius:4px;padding:1px 5px;font-size:0.92em;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace\">private<\/code>, \u0430 \u043d\u0430\u0440\u0443\u0436\u0443 \u0432\u044b\u0441\u0442\u0430\u0432\u043b\u044f\u044e\u0442 \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u043e \u0441 \u043d\u0443\u0436\u043d\u044b\u043c \u0443\u0440\u043e\u0432\u043d\u0435\u043c \u0437\u0430\u043f\u0438\u0441\u0438:<\/p>\n<pre style=\"background:#282c34;color:#abb2bf;border-radius:8px;padding:16px 20px;margin:20px 0;overflow-x:auto;font-size:14px;line-height:1.55;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace\"><code style=\"background:none\"><span style=\"color: #E5C07B\">var<\/span><span style=\"color: #ABB2BF\"> <\/span><span style=\"color: #E06C75\">c<\/span><span style=\"color: #ABB2BF\"> <\/span><span style=\"color: #56B6C2\">=<\/span><span style=\"color: #ABB2BF\"> <\/span><span style=\"color: #C678DD\">new<\/span><span style=\"color: #ABB2BF\"> <\/span><span style=\"color: #E06C75\">Customer<\/span><span style=\"color: #ABB2BF\">(<\/span><span style=\"color: #98C379\">\"\u0410\u043d\u043d\u0430\"<\/span><span style=\"color: #ABB2BF\">) { <\/span><span style=\"color: #E06C75\">Email<\/span><span style=\"color: #ABB2BF\"> <\/span><span style=\"color: #56B6C2\">=<\/span><span style=\"color: #ABB2BF\"> <\/span><span style=\"color: #98C379\">\"anna@example.com\"<\/span><span style=\"color: #ABB2BF\"> };<\/span>\n<span style=\"color: #E06C75\">c<\/span><span style=\"color: #ABB2BF\">.<\/span><span style=\"color: #E06C75\">Age<\/span><span style=\"color: #ABB2BF\"> <\/span><span style=\"color: #56B6C2\">=<\/span><span style=\"color: #ABB2BF\"> <\/span><span style=\"color: #D19A66\">30<\/span><span style=\"color: #ABB2BF\">;<\/span>\n<span style=\"color: #E06C75\">Console<\/span><span style=\"color: #ABB2BF\">.<\/span><span style=\"color: #E06C75\">WriteLine<\/span><span style=\"color: #ABB2BF\">(<\/span><span style=\"color: #98C379\">$\"{c.Name}, {c.Age}, {c.Email}, \u0437\u0430\u043a\u0430\u0437\u043e\u0432: {c.Orders}\"<\/span><span style=\"color: #ABB2BF\">);<\/span>\n<span style=\"color: #E06C75\">c<\/span><span style=\"color: #ABB2BF\">.<\/span><span style=\"color: #E06C75\">AddOrder<\/span><span style=\"color: #ABB2BF\">();<\/span>\n<span style=\"color: #E06C75\">Console<\/span><span style=\"color: #ABB2BF\">.<\/span><span style=\"color: #E06C75\">WriteLine<\/span><span style=\"color: #ABB2BF\">(<\/span><span style=\"color: #98C379\">$\"\u0417\u0430\u043a\u0430\u0437\u043e\u0432: {c.Orders}\"<\/span><span style=\"color: #ABB2BF\">);<\/span>\n\n<span style=\"color: #C678DD\">try<\/span><span style=\"color: #ABB2BF\"> { <\/span><span style=\"color: #E06C75\">c<\/span><span style=\"color: #ABB2BF\">.<\/span><span style=\"color: #E06C75\">Age<\/span><span style=\"color: #ABB2BF\"> <\/span><span style=\"color: #56B6C2\">=<\/span><span style=\"color: #ABB2BF\"> <\/span><span style=\"color: #D19A66\">150<\/span><span style=\"color: #ABB2BF\">; }<\/span>\n<span style=\"color: #C678DD\">catch<\/span><span style=\"color: #ABB2BF\"> (<\/span><span style=\"color: #E06C75\">ArgumentOutOfRangeException<\/span><span style=\"color: #ABB2BF\"> <\/span><span style=\"color: #E06C75\">e<\/span><span style=\"color: #ABB2BF\">) { <\/span><span style=\"color: #E06C75\">Console<\/span><span style=\"color: #ABB2BF\">.<\/span><span style=\"color: #E06C75\">WriteLine<\/span><span style=\"color: #ABB2BF\">(<\/span><span style=\"color: #E06C75\">e<\/span><span style=\"color: #ABB2BF\">.<\/span><span style=\"color: #E06C75\">Message<\/span><span style=\"color: #ABB2BF\">); }<\/span>\n\n<span style=\"color: #7F848E\">\/\/ c.Name = \"\u041e\u043b\u0435\u0433\";   \/\/ CS0200: \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u043e \u0442\u043e\u043b\u044c\u043a\u043e \u0434\u043b\u044f \u0447\u0442\u0435\u043d\u0438\u044f<\/span>\n<span style=\"color: #7F848E\">\/\/ c.Orders = 10;     \/\/ CS0272: set \u043d\u0435\u0434\u043e\u0441\u0442\u0443\u043f\u0435\u043d (private)<\/span>\n<span style=\"color: #7F848E\">\/\/ c.Email = \"x\";     \/\/ CS8852: init-\u0441\u0432\u043e\u0439\u0441\u0442\u0432\u043e \u043c\u0435\u043d\u044f\u0435\u0442\u0441\u044f \u0442\u043e\u043b\u044c\u043a\u043e \u043f\u0440\u0438 \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u0438<\/span>\n\n<span style=\"color: #C678DD\">public<\/span><span style=\"color: #ABB2BF\"> <\/span><span style=\"color: #C678DD\">class<\/span><span style=\"color: #ABB2BF\"> <\/span><span style=\"color: #E5C07B\">Customer<\/span>\n<span style=\"color: #ABB2BF\">{<\/span>\n<span style=\"color: #ABB2BF\">    <\/span><span style=\"color: #C678DD\">public<\/span><span style=\"color: #ABB2BF\"> <\/span><span style=\"color: #61AFEF; font-weight: bold\">Customer<\/span><span style=\"color: #ABB2BF\">(<\/span><span style=\"color: #E5C07B\">string<\/span><span style=\"color: #ABB2BF\"> <\/span><span style=\"color: #E06C75\">name<\/span><span style=\"color: #ABB2BF\">) <\/span><span style=\"color: #56B6C2\">=&gt;<\/span><span style=\"color: #ABB2BF\"> <\/span><span style=\"color: #E06C75\">Name<\/span><span style=\"color: #ABB2BF\"> <\/span><span style=\"color: #56B6C2\">=<\/span><span style=\"color: #ABB2BF\"> <\/span><span style=\"color: #E06C75\">name<\/span><span style=\"color: #ABB2BF\">;<\/span>\n\n<span style=\"color: #ABB2BF\">    <\/span><span style=\"color: #C678DD\">public<\/span><span style=\"color: #ABB2BF\"> <\/span><span style=\"color: #E5C07B\">string<\/span><span style=\"color: #ABB2BF\"> <\/span><span style=\"color: #E06C75\">Name<\/span><span style=\"color: #ABB2BF\"> { <\/span><span style=\"color: #C678DD\">get<\/span><span style=\"color: #ABB2BF\">; }                 <\/span><span style=\"color: #7F848E\">\/\/ \u0442\u043e\u043b\u044c\u043a\u043e \u0447\u0442\u0435\u043d\u0438\u0435, \u0437\u0430\u0434\u0430\u0435\u0442\u0441\u044f \u0432 \u043a\u043e\u043d\u0441\u0442\u0440\u0443\u043a\u0442\u043e\u0440\u0435<\/span>\n<span style=\"color: #ABB2BF\">    <\/span><span style=\"color: #C678DD\">public<\/span><span style=\"color: #ABB2BF\"> <\/span><span style=\"color: #E5C07B\">string<\/span><span style=\"color: #ABB2BF\"> <\/span><span style=\"color: #E06C75\">Email<\/span><span style=\"color: #ABB2BF\"> { <\/span><span style=\"color: #C678DD\">get<\/span><span style=\"color: #ABB2BF\">; <\/span><span style=\"color: #C678DD\">init<\/span><span style=\"color: #ABB2BF\">; } <\/span><span style=\"color: #56B6C2\">=<\/span><span style=\"color: #ABB2BF\"> <\/span><span style=\"color: #98C379\">\"\"<\/span><span style=\"color: #ABB2BF\">;    <\/span><span style=\"color: #7F848E\">\/\/ \u0437\u0430\u0434\u0430\u0435\u0442\u0441\u044f \u043e\u0434\u0438\u043d \u0440\u0430\u0437 \u043f\u0440\u0438 \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u0438<\/span>\n<span style=\"color: #ABB2BF\">    <\/span><span style=\"color: #C678DD\">public<\/span><span style=\"color: #ABB2BF\"> <\/span><span style=\"color: #E5C07B\">int<\/span><span style=\"color: #ABB2BF\"> <\/span><span style=\"color: #E06C75\">Orders<\/span><span style=\"color: #ABB2BF\"> { <\/span><span style=\"color: #C678DD\">get<\/span><span style=\"color: #ABB2BF\">; <\/span><span style=\"color: #C678DD\">private<\/span><span style=\"color: #ABB2BF\"> <\/span><span style=\"color: #C678DD\">set<\/span><span style=\"color: #ABB2BF\">; }     <\/span><span style=\"color: #7F848E\">\/\/ \u0447\u0438\u0442\u0430\u0442\u044c \u0432\u0441\u0435\u043c, \u043c\u0435\u043d\u044f\u0442\u044c \u0442\u043e\u043b\u044c\u043a\u043e \u043a\u043b\u0430\u0441\u0441\u0443<\/span>\n\n<span style=\"color: #ABB2BF\">    <\/span><span style=\"color: #C678DD\">public<\/span><span style=\"color: #ABB2BF\"> <\/span><span style=\"color: #E5C07B\">int<\/span><span style=\"color: #ABB2BF\"> <\/span><span style=\"color: #E06C75\">Age<\/span><span style=\"color: #ABB2BF\">                              <\/span><span style=\"color: #7F848E\">\/\/ C# 14: \u043a\u043b\u044e\u0447\u0435\u0432\u043e\u0435 \u0441\u043b\u043e\u0432\u043e field<\/span>\n<span style=\"color: #ABB2BF\">    {<\/span>\n<span style=\"color: #ABB2BF\">        <\/span><span style=\"color: #C678DD\">get<\/span><span style=\"color: #ABB2BF\">;<\/span>\n<span style=\"color: #ABB2BF\">        <\/span><span style=\"color: #C678DD\">set<\/span><span style=\"color: #ABB2BF\"> <\/span><span style=\"color: #56B6C2\">=&gt;<\/span><span style=\"color: #ABB2BF\"> <\/span><span style=\"color: #E06C75\">field<\/span><span style=\"color: #ABB2BF\"> <\/span><span style=\"color: #56B6C2\">=<\/span><span style=\"color: #ABB2BF\"> <\/span><span style=\"color: #C678DD\">value<\/span><span style=\"color: #ABB2BF\"> <\/span><span style=\"color: #C678DD\">is<\/span><span style=\"color: #ABB2BF\"> <\/span><span style=\"color: #56B6C2\">&gt;=<\/span><span style=\"color: #ABB2BF\"> <\/span><span style=\"color: #D19A66\">0<\/span><span style=\"color: #ABB2BF\"> <\/span><span style=\"color: #C678DD\">and<\/span><span style=\"color: #ABB2BF\"> <\/span><span style=\"color: #56B6C2\">&lt;=<\/span><span style=\"color: #ABB2BF\"> <\/span><span style=\"color: #D19A66\">120<\/span>\n<span style=\"color: #ABB2BF\">            <\/span><span style=\"color: #56B6C2\">?<\/span><span style=\"color: #ABB2BF\"> <\/span><span style=\"color: #C678DD\">value<\/span>\n<span style=\"color: #ABB2BF\">            : <\/span><span style=\"color: #C678DD\">throw<\/span><span style=\"color: #ABB2BF\"> <\/span><span style=\"color: #C678DD\">new<\/span><span style=\"color: #ABB2BF\"> <\/span><span style=\"color: #E06C75\">ArgumentOutOfRangeException<\/span><span style=\"color: #ABB2BF\">(<\/span><span style=\"color: #C678DD\">nameof<\/span><span style=\"color: #ABB2BF\">(<\/span><span style=\"color: #C678DD\">value<\/span><span style=\"color: #ABB2BF\">), <\/span><span style=\"color: #98C379\">\"\u0412\u043e\u0437\u0440\u0430\u0441\u0442 \u043e\u0442 0 \u0434\u043e 120\"<\/span><span style=\"color: #ABB2BF\">);<\/span>\n<span style=\"color: #ABB2BF\">    }<\/span>\n\n<span style=\"color: #ABB2BF\">    <\/span><span style=\"color: #C678DD\">public<\/span><span style=\"color: #ABB2BF\"> <\/span><span style=\"color: #C678DD\">void<\/span><span style=\"color: #ABB2BF\"> <\/span><span style=\"color: #61AFEF; font-weight: bold\">AddOrder<\/span><span style=\"color: #ABB2BF\">() <\/span><span style=\"color: #56B6C2\">=&gt;<\/span><span style=\"color: #ABB2BF\"> <\/span><span style=\"color: #E06C75\">Orders<\/span><span style=\"color: #56B6C2\">++<\/span><span style=\"color: #ABB2BF\">;<\/span>\n<span style=\"color: #ABB2BF\">}<\/span><\/code><\/pre>\n<p>\u0412\u044b\u0432\u043e\u0434:<\/p>\n<pre style=\"background:#282c34;color:#abb2bf;border-radius:8px;padding:16px 20px;margin:20px 0;overflow-x:auto;font-size:14px;line-height:1.55;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace\"><code style=\"background:none\">\u0410\u043d\u043d\u0430, 30, anna@example.com, \u0437\u0430\u043a\u0430\u0437\u043e\u0432: 0\n\u0417\u0430\u043a\u0430\u0437\u043e\u0432: 1\n\u0412\u043e\u0437\u0440\u0430\u0441\u0442 \u043e\u0442 0 \u0434\u043e 120 (Parameter &#x27;value&#x27;)\n<\/code><\/pre>\n<p>\u0415\u0441\u043b\u0438 \u0440\u0430\u0441\u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0442\u0440\u0438 \u0441\u0442\u0440\u043e\u043a\u0438 \u0432 \u0441\u0435\u0440\u0435\u0434\u0438\u043d\u0435, \u0441\u0431\u043e\u0440\u043a\u0430 \u043e\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u0441\u044f \u0441 \u043e\u0448\u0438\u0431\u043a\u0430\u043c\u0438 CS0200, CS0272 \u0438 CS8852 &#8212; \u043f\u043e \u043e\u0434\u043d\u043e\u0439 \u043d\u0430 \u043a\u0430\u0436\u0434\u044b\u0439 \u0441\u043f\u043e\u0441\u043e\u0431 \u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0438\u0442\u044c \u0437\u0430\u043f\u0438\u0441\u044c. \u041a\u043b\u044e\u0447\u0435\u0432\u043e\u0435 \u0441\u043b\u043e\u0432\u043e <code style=\"background:#eef0f3;color:#24292f;border-radius:4px;padding:1px 5px;font-size:0.92em;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace\">field<\/code> \u0432\u043d\u0443\u0442\u0440\u0438 \u0430\u043a\u0441\u0435\u0441\u0441\u043e\u0440\u0430 \u0441\u0441\u044b\u043b\u0430\u0435\u0442\u0441\u044f \u043d\u0430 \u0441\u043a\u0440\u044b\u0442\u043e\u0435 \u043f\u043e\u043b\u0435, \u043a\u043e\u0442\u043e\u0440\u043e\u0435 \u0441\u043e\u0437\u0434\u0430\u0435\u0442 \u043a\u043e\u043c\u043f\u0438\u043b\u044f\u0442\u043e\u0440; \u043e\u043d\u043e \u0441\u0442\u0430\u043b\u043e \u0447\u0430\u0441\u0442\u044c\u044e \u044f\u0437\u044b\u043a\u0430 \u0432 C# 14 (.NET 10). \u041d\u0430 \u0431\u043e\u043b\u0435\u0435 \u0441\u0442\u0430\u0440\u044b\u0445 \u0432\u0435\u0440\u0441\u0438\u044f\u0445 \u0442\u043e \u0436\u0435 \u0441\u0430\u043c\u043e\u0435 \u043f\u0438\u0448\u0443\u0442 \u044f\u0432\u043d\u044b\u043c \u043f\u043e\u043b\u0435\u043c <code style=\"background:#eef0f3;color:#24292f;border-radius:4px;padding:1px 5px;font-size:0.92em;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace\">private int _age;<\/code> \u0438 <code style=\"background:#eef0f3;color:#24292f;border-radius:4px;padding:1px 5px;font-size:0.92em;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace\">set { ... _age = value; }<\/code>.<\/p>\n<h2 id=\"s9\">\u0418\u043d\u043a\u0430\u043f\u0441\u0443\u043b\u044f\u0446\u0438\u044f &#8212; \u043d\u0435 \u0437\u0430\u0449\u0438\u0442\u0430 \u043e\u0442 \u0432\u0437\u043b\u043e\u043c\u0430<\/h2>\n<p>\u041c\u043e\u0434\u0438\u0444\u0438\u043a\u0430\u0442\u043e\u0440\u044b \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u0442 \u043a\u043e\u043c\u043f\u0438\u043b\u044f\u0442\u043e\u0440, \u0430 \u043d\u0435 \u0441\u0440\u0435\u0434\u0430 \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f \u043f\u0440\u043e\u0442\u0438\u0432 \u0437\u043b\u043e\u0443\u043c\u044b\u0448\u043b\u0435\u043d\u043d\u0438\u043a\u0430. \u0427\u0435\u0440\u0435\u0437 \u0440\u0435\u0444\u043b\u0435\u043a\u0441\u0438\u044e <code style=\"background:#eef0f3;color:#24292f;border-radius:4px;padding:1px 5px;font-size:0.92em;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace\">private<\/code>-\u043f\u043e\u043b\u0435 \u043c\u043e\u0436\u043d\u043e \u043f\u0440\u043e\u0447\u0438\u0442\u0430\u0442\u044c \u0438 \u0438\u0437\u043c\u0435\u043d\u0438\u0442\u044c:<\/p>\n<pre style=\"background:#282c34;color:#abb2bf;border-radius:8px;padding:16px 20px;margin:20px 0;overflow-x:auto;font-size:14px;line-height:1.55;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace\"><code style=\"background:none\"><span style=\"color: #C678DD\">using<\/span><span style=\"color: #ABB2BF\"> <\/span><span style=\"color: #E06C75\">System.Reflection<\/span><span style=\"color: #ABB2BF\">;<\/span>\n<span style=\"color: #C678DD\">using<\/span><span style=\"color: #ABB2BF\"> <\/span><span style=\"color: #E06C75\">Shop.Core<\/span><span style=\"color: #ABB2BF\">;<\/span>\n\n<span style=\"color: #E5C07B\">var<\/span><span style=\"color: #ABB2BF\"> <\/span><span style=\"color: #E06C75\">acc<\/span><span style=\"color: #ABB2BF\"> <\/span><span style=\"color: #56B6C2\">=<\/span><span style=\"color: #ABB2BF\"> <\/span><span style=\"color: #C678DD\">new<\/span><span style=\"color: #ABB2BF\"> <\/span><span style=\"color: #E06C75\">Account<\/span><span style=\"color: #ABB2BF\">();<\/span>\n<span style=\"color: #E06C75\">acc<\/span><span style=\"color: #ABB2BF\">.<\/span><span style=\"color: #E06C75\">Deposit<\/span><span style=\"color: #ABB2BF\">(<\/span><span style=\"color: #D19A66\">100<\/span><span style=\"color: #ABB2BF\">);<\/span>\n<span style=\"color: #E5C07B\">var<\/span><span style=\"color: #ABB2BF\"> <\/span><span style=\"color: #E06C75\">f<\/span><span style=\"color: #ABB2BF\"> <\/span><span style=\"color: #56B6C2\">=<\/span><span style=\"color: #ABB2BF\"> <\/span><span style=\"color: #C678DD\">typeof<\/span><span style=\"color: #ABB2BF\">(<\/span><span style=\"color: #E06C75\">Account<\/span><span style=\"color: #ABB2BF\">).<\/span><span style=\"color: #E06C75\">GetField<\/span><span style=\"color: #ABB2BF\">(<\/span><span style=\"color: #98C379\">\"_balance\"<\/span><span style=\"color: #ABB2BF\">, <\/span><span style=\"color: #E06C75\">BindingFlags<\/span><span style=\"color: #ABB2BF\">.<\/span><span style=\"color: #E06C75\">NonPublic<\/span><span style=\"color: #ABB2BF\"> <\/span><span style=\"color: #56B6C2\">|<\/span><span style=\"color: #ABB2BF\"> <\/span><span style=\"color: #E06C75\">BindingFlags<\/span><span style=\"color: #ABB2BF\">.<\/span><span style=\"color: #E06C75\">Instance<\/span><span style=\"color: #ABB2BF\">)<\/span><span style=\"color: #56B6C2\">!<\/span><span style=\"color: #ABB2BF\">;<\/span>\n<span style=\"color: #E06C75\">f<\/span><span style=\"color: #ABB2BF\">.<\/span><span style=\"color: #E06C75\">SetValue<\/span><span style=\"color: #ABB2BF\">(<\/span><span style=\"color: #E06C75\">acc<\/span><span style=\"color: #ABB2BF\">, <\/span><span style=\"color: #D19A66\">1<\/span><span style=\"color: #E06C75\">_000_000m<\/span><span style=\"color: #ABB2BF\">);<\/span>\n<span style=\"color: #E06C75\">Console<\/span><span style=\"color: #ABB2BF\">.<\/span><span style=\"color: #E06C75\">WriteLine<\/span><span style=\"color: #ABB2BF\">(<\/span><span style=\"color: #E06C75\">acc<\/span><span style=\"color: #ABB2BF\">.<\/span><span style=\"color: #E06C75\">Balance<\/span><span style=\"color: #ABB2BF\">);   <\/span><span style=\"color: #7F848E\">\/\/ 1000000<\/span><\/code><\/pre>\n<p>\u041f\u043e\u044d\u0442\u043e\u043c\u0443 <code style=\"background:#eef0f3;color:#24292f;border-radius:4px;padding:1px 5px;font-size:0.92em;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace\">private<\/code> \u0437\u0430\u0449\u0438\u0449\u0430\u0435\u0442 \u043e\u0442 \u0441\u043b\u0443\u0447\u0430\u0439\u043d\u044b\u0445 \u043e\u0448\u0438\u0431\u043e\u043a \u0438 \u0444\u0438\u043a\u0441\u0438\u0440\u0443\u0435\u0442 \u043a\u043e\u043d\u0442\u0440\u0430\u043a\u0442 \u043a\u043b\u0430\u0441\u0441\u0430, \u043d\u043e \u043d\u0435 \u0437\u0430\u043c\u0435\u043d\u044f\u0435\u0442 \u043f\u0440\u043e\u0432\u0435\u0440\u043e\u043a \u043f\u0440\u0430\u0432, \u0445\u0440\u0430\u043d\u0435\u043d\u0438\u044f \u0441\u0435\u043a\u0440\u0435\u0442\u043e\u0432 \u0432\u043d\u0435 \u043a\u043e\u0434\u0430 \u0438 \u0432\u0430\u043b\u0438\u0434\u0430\u0446\u0438\u0438 \u043d\u0430 \u0441\u0435\u0440\u0432\u0435\u0440\u0435.<\/p>\n<h2 id=\"s10\">\u041a\u0430\u043a \u0432\u044b\u0431\u0440\u0430\u0442\u044c \u043c\u043e\u0434\u0438\u0444\u0438\u043a\u0430\u0442\u043e\u0440<\/h2>\n<p>\u041f\u0440\u0430\u043a\u0442\u0438\u0447\u043d\u044b\u0439 \u043f\u043e\u0440\u044f\u0434\u043e\u043a &#8212; \u043d\u0430\u0447\u0438\u043d\u0430\u0442\u044c \u0441 \u0441\u0430\u043c\u043e\u0433\u043e \u0443\u0437\u043a\u043e\u0433\u043e \u0443\u0440\u043e\u0432\u043d\u044f \u0438 \u0440\u0430\u0441\u0448\u0438\u0440\u044f\u0442\u044c \u0442\u043e\u043b\u044c\u043a\u043e \u043f\u043e \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e\u0441\u0442\u0438:<\/p>\n<ol>\n<li>\u041f\u043e\u043b\u0435 &#8212; \u043f\u043e\u0447\u0442\u0438 \u0432\u0441\u0435\u0433\u0434\u0430 <code style=\"background:#eef0f3;color:#24292f;border-radius:4px;padding:1px 5px;font-size:0.92em;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace\">private<\/code>, \u043d\u0430\u0440\u0443\u0436\u0443 &#8212; \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u043e \u0438\u043b\u0438 \u043c\u0435\u0442\u043e\u0434.<\/li>\n<li>\u041d\u0443\u0436\u043d\u043e \u043d\u0430\u0441\u043b\u0435\u0434\u043d\u0438\u043a\u0430\u043c &#8212; <code style=\"background:#eef0f3;color:#24292f;border-radius:4px;padding:1px 5px;font-size:0.92em;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace\">protected<\/code>; \u0442\u043e\u043b\u044c\u043a\u043e \u043d\u0430\u0441\u043b\u0435\u0434\u043d\u0438\u043a\u0430\u043c \u0441\u0432\u043e\u0435\u0439 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0438 &#8212; <code style=\"background:#eef0f3;color:#24292f;border-radius:4px;padding:1px 5px;font-size:0.92em;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace\">private protected<\/code>.<\/li>\n<li>\u041d\u0443\u0436\u043d\u043e \u0434\u0440\u0443\u0433\u0438\u043c \u043a\u043b\u0430\u0441\u0441\u0430\u043c \u0441\u0432\u043e\u0435\u0433\u043e \u043f\u0440\u043e\u0435\u043a\u0442\u0430, \u043d\u043e \u043d\u0435 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f\u043c \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0438 &#8212; <code style=\"background:#eef0f3;color:#24292f;border-radius:4px;padding:1px 5px;font-size:0.92em;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace\">internal<\/code>.<\/li>\n<li>\u0427\u0430\u0441\u0442\u044c \u043f\u0443\u0431\u043b\u0438\u0447\u043d\u043e\u0433\u043e API &#8212; <code style=\"background:#eef0f3;color:#24292f;border-radius:4px;padding:1px 5px;font-size:0.92em;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace\">public<\/code>. \u041a\u0430\u0436\u0434\u044b\u0439 \u0442\u0430\u043a\u043e\u0439 \u0447\u043b\u0435\u043d \u043f\u043e\u0442\u043e\u043c \u0441\u043b\u043e\u0436\u043d\u043e \u0438\u0437\u043c\u0435\u043d\u0438\u0442\u044c \u0431\u0435\u0437 \u043f\u043e\u043b\u043e\u043c\u043a\u0438 \u0447\u0443\u0436\u043e\u0433\u043e \u043a\u043e\u0434\u0430.<\/li>\n<li>\u0414\u043b\u044f \u0442\u0435\u0441\u0442\u043e\u0432 \u043d\u0435 \u043e\u0442\u043a\u0440\u044b\u0432\u0430\u0439\u0442\u0435 <code style=\"background:#eef0f3;color:#24292f;border-radius:4px;padding:1px 5px;font-size:0.92em;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace\">internal<\/code> \u0434\u043e <code style=\"background:#eef0f3;color:#24292f;border-radius:4px;padding:1px 5px;font-size:0.92em;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace\">public<\/code>, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0439\u0442\u0435 <code style=\"background:#eef0f3;color:#24292f;border-radius:4px;padding:1px 5px;font-size:0.92em;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace\">InternalsVisibleTo<\/code>.<\/li>\n<\/ol>\n<p>\u0414\u043b\u044f \u0442\u0435\u0445, \u043a\u0442\u043e \u043f\u0440\u0438\u0448\u0435\u043b \u0438\u0437 Java: \u0442\u0430\u043c \u043d\u0435\u0442 <code style=\"background:#eef0f3;color:#24292f;border-radius:4px;padding:1px 5px;font-size:0.92em;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace\">internal<\/code>, \u0430 \u0443\u0440\u043e\u0432\u0435\u043d\u044c \u0431\u0435\u0437 \u043c\u043e\u0434\u0438\u0444\u0438\u043a\u0430\u0442\u043e\u0440\u0430 &#8212; package-private (\u0434\u043e\u0441\u0442\u0443\u043f \u0432 \u043f\u0440\u0435\u0434\u0435\u043b\u0430\u0445 \u043f\u0430\u043a\u0435\u0442\u0430). Java-<code style=\"background:#eef0f3;color:#24292f;border-radius:4px;padding:1px 5px;font-size:0.92em;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace\">protected<\/code> \u0442\u043e\u0436\u0435 \u0448\u0438\u0440\u0435: \u043e\u043d \u0432\u043a\u043b\u044e\u0447\u0430\u0435\u0442 \u0432\u0435\u0441\u044c \u043f\u0430\u043a\u0435\u0442. \u0411\u043b\u0438\u0436\u0430\u0439\u0448\u0438\u0439 \u0430\u043d\u0430\u043b\u043e\u0433 Java-\u043f\u0430\u043a\u0435\u0442\u0430 \u0432 C# \u043f\u043e \u0441\u043c\u044b\u0441\u043b\u0443 \u0434\u043e\u0441\u0442\u0443\u043f\u0430 &#8212; \u0441\u0431\u043e\u0440\u043a\u0430, \u0430 \u043d\u0435 \u043f\u0440\u043e\u0441\u0442\u0440\u0430\u043d\u0441\u0442\u0432\u043e \u0438\u043c\u0435\u043d.<\/p>\n<h2 id=\"s11\">\u0412\u044b\u0432\u043e\u0434\u044b<\/h2>\n<ul>\n<li><code style=\"background:#eef0f3;color:#24292f;border-radius:4px;padding:1px 5px;font-size:0.92em;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace\">internal<\/code> \u043e\u0442\u043a\u0440\u044b\u0432\u0430\u0435\u0442 \u0442\u0438\u043f \u0438\u043b\u0438 \u0447\u043b\u0435\u043d \u0432\u0441\u0435\u0439 \u0441\u0432\u043e\u0435\u0439 \u0441\u0431\u043e\u0440\u043a\u0435 (<code style=\"background:#eef0f3;color:#24292f;border-radius:4px;padding:1px 5px;font-size:0.92em;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace\">.dll<\/code>\/<code style=\"background:#eef0f3;color:#24292f;border-radius:4px;padding:1px 5px;font-size:0.92em;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace\">.exe<\/code>) \u0438 \u0441\u043a\u0440\u044b\u0432\u0430\u0435\u0442 \u043e\u0442 \u0434\u0440\u0443\u0433\u0438\u0445 \u0441\u0431\u043e\u0440\u043e\u043a; \u0444\u0430\u0439\u043b \u0438 \u043f\u0440\u043e\u0441\u0442\u0440\u0430\u043d\u0441\u0442\u0432\u043e \u0438\u043c\u0435\u043d \u0442\u0443\u0442 \u043d\u0438 \u043f\u0440\u0438 \u0447\u0435\u043c.<\/li>\n<li><code style=\"background:#eef0f3;color:#24292f;border-radius:4px;padding:1px 5px;font-size:0.92em;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace\">protected internal<\/code> &#8212; \u044d\u0442\u043e protected \u0418\u041b\u0418 internal, <code style=\"background:#eef0f3;color:#24292f;border-radius:4px;padding:1px 5px;font-size:0.92em;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace\">private protected<\/code> &#8212; protected \u0418 internal; <code style=\"background:#eef0f3;color:#24292f;border-radius:4px;padding:1px 5px;font-size:0.92em;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace\">file<\/code> \u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0438\u0432\u0430\u0435\u0442 \u0442\u0438\u043f \u043e\u0434\u043d\u0438\u043c \u0438\u0441\u0445\u043e\u0434\u043d\u044b\u043c \u0444\u0430\u0439\u043b\u043e\u043c.<\/li>\n<li>\u0411\u0435\u0437 \u043c\u043e\u0434\u0438\u0444\u0438\u043a\u0430\u0442\u043e\u0440\u0430 \u043a\u043b\u0430\u0441\u0441 \u0432\u0435\u0440\u0445\u043d\u0435\u0433\u043e \u0443\u0440\u043e\u0432\u043d\u044f &#8212; <code style=\"background:#eef0f3;color:#24292f;border-radius:4px;padding:1px 5px;font-size:0.92em;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace\">internal<\/code>, \u0447\u043b\u0435\u043d \u043a\u043b\u0430\u0441\u0441\u0430 \u0438\u043b\u0438 \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u044b &#8212; <code style=\"background:#eef0f3;color:#24292f;border-radius:4px;padding:1px 5px;font-size:0.92em;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace\">private<\/code>.<\/li>\n<li>\u0418\u043d\u043a\u0430\u043f\u0441\u0443\u043b\u044f\u0446\u0438\u044e \u0434\u0430\u044e\u0442 <code style=\"background:#eef0f3;color:#24292f;border-radius:4px;padding:1px 5px;font-size:0.92em;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace\">private<\/code>-\u043f\u043e\u043b\u044f \u043f\u043b\u044e\u0441 \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u0430 \u0441 <code style=\"background:#eef0f3;color:#24292f;border-radius:4px;padding:1px 5px;font-size:0.92em;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace\">private set<\/code>, <code style=\"background:#eef0f3;color:#24292f;border-radius:4px;padding:1px 5px;font-size:0.92em;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace\">init<\/code> \u0438 \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u043e\u0439 \u0432 <code style=\"background:#eef0f3;color:#24292f;border-radius:4px;padding:1px 5px;font-size:0.92em;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace\">set<\/code>.<\/li>\n<li>\u041c\u043e\u0434\u0438\u0444\u0438\u043a\u0430\u0442\u043e\u0440\u044b \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u0442 \u043a\u043e\u043c\u043f\u0438\u043b\u044f\u0442\u043e\u0440; \u0440\u0435\u0444\u043b\u0435\u043a\u0441\u0438\u044f \u0438\u0445 \u043e\u0431\u0445\u043e\u0434\u0438\u0442, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u044d\u0442\u043e \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442 \u0434\u0438\u0437\u0430\u0439\u043d\u0430, \u0430 \u043d\u0435 \u0431\u0435\u0437\u043e\u043f\u0430\u0441\u043d\u043e\u0441\u0442\u0438.<\/li>\n<\/ul>\n<h2 id=\"s12\">\u0413\u0434\u0435 \u043f\u0440\u0438\u043c\u0435\u043d\u044f\u0435\u0442\u0441\u044f \/ \u0441\u0432\u044f\u0437\u044c \u0441 \u043f\u0440\u0430\u043a\u0442\u0438\u043a\u043e\u0439<\/h2>\n<div class=\"oj-cta\" style=\"background:#fbf4e4;border-left:4px solid #c9962b;border-radius:8px;padding:16px 20px;margin:24px 0\">\n<p style=\"margin:0 0 8px\"><strong>\u041e\u0441\u0432\u043e\u0439\u0442\u0435 \u0442\u0435\u043c\u0443 \u043d\u0430 \u043f\u0440\u0430\u043a\u0442\u0438\u043a\u0435<\/strong><\/p>\n<p>\u041c\u043e\u0434\u0438\u0444\u0438\u043a\u0430\u0442\u043e\u0440\u044b \u0434\u043e\u0441\u0442\u0443\u043f\u0430 \u043d\u0430\u0447\u0438\u043d\u0430\u044e\u0442 \u043f\u043e-\u043d\u0430\u0441\u0442\u043e\u044f\u0449\u0435\u043c\u0443 \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c, \u043a\u043e\u0433\u0434\u0430 \u0432 \u0440\u0435\u0448\u0435\u043d\u0438\u0438 \u043f\u043e\u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u043f\u0440\u043e\u0435\u043a\u0442\u043e\u0432: \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0430, API, \u0442\u0435\u0441\u0442\u044b. \u0422\u043e\u0433\u0434\u0430 \u043e\u0442 \u0432\u044b\u0431\u043e\u0440\u0430 \u043c\u0435\u0436\u0434\u0443 <code style=\"background:#eef0f3;color:#24292f;border-radius:4px;padding:1px 5px;font-size:0.92em;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace\">internal<\/code> \u0438 <code style=\"background:#eef0f3;color:#24292f;border-radius:4px;padding:1px 5px;font-size:0.92em;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace\">public<\/code> \u0437\u0430\u0432\u0438\u0441\u0438\u0442, \u0447\u0442\u043e \u0441\u0442\u0430\u043d\u0435\u0442 \u043f\u0443\u0431\u043b\u0438\u0447\u043d\u044b\u043c \u043a\u043e\u043d\u0442\u0440\u0430\u043a\u0442\u043e\u043c, \u0430 \u0447\u0442\u043e \u043c\u043e\u0436\u043d\u043e \u0441\u0432\u043e\u0431\u043e\u0434\u043d\u043e \u043c\u0435\u043d\u044f\u0442\u044c. \u042d\u0442\u0438 \u0432\u0435\u0449\u0438 \u0440\u0430\u0437\u0431\u0438\u0440\u0430\u044e\u0442 \u043d\u0430 \u043f\u0440\u0430\u043a\u0442\u0438\u043a\u0435 \u0432 \u043a\u0443\u0440\u0441\u0435 <a href=\"https:\/\/otus.ru\/lessons\/c-sharp-basic\/?int_article=inkapsulyaciya-i-modifikatory-dostupa&amp;int_place=article&amp;int_variant=v1\">C#-\u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0438 \u0441 \u043d\u0443\u043b\u044f<\/a>, \u0430 \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u0444\u043e\u0440\u043c\u0430\u0442 \u0437\u0430\u043d\u044f\u0442\u0438\u0439 \u043c\u043e\u0436\u043d\u043e \u043d\u0430 <a href=\"https:\/\/otus.ru\/events\/?int_article=inkapsulyaciya-i-modifikatory-dostupa&amp;int_place=article&amp;int_variant=v1\">\u0431\u0435\u0441\u043f\u043b\u0430\u0442\u043d\u044b\u0445 \u043e\u0442\u043a\u0440\u044b\u0442\u044b\u0445 \u0443\u0440\u043e\u043a\u0430\u0445 Otus<\/a>.<\/p>\n<\/div>\n<h2 id=\"s13\">FAQ<\/h2>\n<p><strong><code style=\"background:#eef0f3;color:#24292f;border-radius:4px;padding:1px 5px;font-size:0.92em;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace\">static<\/code> &#8212; \u044d\u0442\u043e \u043c\u043e\u0434\u0438\u0444\u0438\u043a\u0430\u0442\u043e\u0440 \u0434\u043e\u0441\u0442\u0443\u043f\u0430?<\/strong><br \/>\n\u041d\u0435\u0442. <code style=\"background:#eef0f3;color:#24292f;border-radius:4px;padding:1px 5px;font-size:0.92em;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace\">static<\/code> \u043e\u0437\u043d\u0430\u0447\u0430\u0435\u0442, \u0447\u0442\u043e \u0447\u043b\u0435\u043d \u043f\u0440\u0438\u043d\u0430\u0434\u043b\u0435\u0436\u0438\u0442 \u0442\u0438\u043f\u0443, \u0430 \u043d\u0435 \u043e\u0431\u044a\u0435\u043a\u0442\u0443, \u0438 \u0441\u043e\u0447\u0435\u0442\u0430\u0435\u0442\u0441\u044f \u0441 \u043b\u044e\u0431\u044b\u043c \u0443\u0440\u043e\u0432\u043d\u0435\u043c \u0434\u043e\u0441\u0442\u0443\u043f\u0430: <code style=\"background:#eef0f3;color:#24292f;border-radius:4px;padding:1px 5px;font-size:0.92em;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace\">private static<\/code>, <code style=\"background:#eef0f3;color:#24292f;border-radius:4px;padding:1px 5px;font-size:0.92em;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace\">public static<\/code> \u0438 \u0442\u0430\u043a \u0434\u0430\u043b\u0435\u0435.<\/p>\n<p><strong>\u041c\u043e\u0436\u043d\u043e \u043b\u0438 \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u043e \u043f\u0443\u0431\u043b\u0438\u0447\u043d\u044b\u043c \u0434\u043b\u044f \u0447\u0442\u0435\u043d\u0438\u044f \u0438 internal \u0434\u043b\u044f \u0437\u0430\u043f\u0438\u0441\u0438?<\/strong><br \/>\n\u0414\u0430: <code style=\"background:#eef0f3;color:#24292f;border-radius:4px;padding:1px 5px;font-size:0.92em;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace\">public int Count { get; internal set; }<\/code>. \u041c\u043e\u0434\u0438\u0444\u0438\u043a\u0430\u0442\u043e\u0440 \u0430\u043a\u0441\u0435\u0441\u0441\u043e\u0440\u0430 \u0434\u043e\u043b\u0436\u0435\u043d \u0431\u044b\u0442\u044c \u0441\u0442\u0440\u043e\u0436\u0435, \u0447\u0435\u043c \u0443 \u0441\u0430\u043c\u043e\u0433\u043e \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u0430.<\/p>\n<p><strong>\u0415\u0441\u043b\u0438 \u0434\u0432\u0430 \u043f\u0440\u043e\u0435\u043a\u0442\u0430 \u0432 \u043e\u0434\u043d\u043e\u043c \u0440\u0435\u0448\u0435\u043d\u0438\u0438, internal \u043c\u0435\u0436\u0434\u0443 \u043d\u0438\u043c\u0438 \u0432\u0438\u0434\u0435\u043d?<\/strong><br \/>\n\u041d\u0435\u0442. \u0420\u0435\u0448\u0435\u043d\u0438\u0435 (<code style=\"background:#eef0f3;color:#24292f;border-radius:4px;padding:1px 5px;font-size:0.92em;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace\">.sln<\/code>) &#8212; \u043f\u0440\u043e\u0441\u0442\u043e \u043d\u0430\u0431\u043e\u0440 \u043f\u0440\u043e\u0435\u043a\u0442\u043e\u0432, \u0430 \u043a\u0430\u0436\u0434\u044b\u0439 \u043f\u0440\u043e\u0435\u043a\u0442 \u0441\u043e\u0431\u0438\u0440\u0430\u0435\u0442\u0441\u044f \u0432 \u0441\u0432\u043e\u044e \u0441\u0431\u043e\u0440\u043a\u0443. \u0414\u043e\u0441\u0442\u0443\u043f \u0434\u0430\u0435\u0442 \u0442\u043e\u043b\u044c\u043a\u043e <code style=\"background:#eef0f3;color:#24292f;border-radius:4px;padding:1px 5px;font-size:0.92em;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace\">InternalsVisibleTo<\/code>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u041c\u043e\u0434\u0438\u0444\u0438\u043a\u0430\u0442\u043e\u0440 \u0434\u043e\u0441\u0442\u0443\u043f\u0430 \u0432 C# &#8212; \u043a\u043b\u044e\u0447\u0435\u0432\u043e\u0435 \u0441\u043b\u043e\u0432\u043e (public, private, protected, internal \u0438 \u0438\u0445 \u0441\u043e\u0447\u0435\u0442\u0430\u043d\u0438\u044f), \u043a\u043e\u0442\u043e\u0440\u043e\u0435 \u0443\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442, \u0438\u0437 \u043a\u0430\u043a\u043e\u0433\u043e \u043a\u043e\u0434\u0430 \u043c\u043e\u0436\u043d\u043e \u043e\u0431\u0440\u0430\u0442\u0438\u0442\u044c\u0441\u044f \u043a \u0442\u0438\u043f\u0443 \u0438\u043b\u0438 \u0447\u043b\u0435\u043d\u0443 \u043a\u043b\u0430\u0441\u0441\u0430. \u0418\u043d\u043a\u0430\u043f\u0441\u0443\u043b\u044f\u0446\u0438\u044f &#8212; \u043f\u0440\u0438\u043d\u0446\u0438\u043f \u041e\u041e\u041f, \u0440\u0430\u0434\u0438 \u043a\u043e\u0442\u043e\u0440\u043e\u0433\u043e \u043c\u043e\u0434\u0438\u0444\u0438\u043a\u0430\u0442\u043e\u0440\u044b \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u044e\u0442: \u043e\u0431\u044a\u0435\u043a\u0442 \u043f\u0440\u044f\u0447\u0435\u0442 \u0432\u043d\u0443\u0442\u0440\u0435\u043d\u043d\u0435\u0435 \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0435 \u0438 \u0434\u0430\u0435\u0442 \u043c\u0435\u043d\u044f\u0442\u044c \u0435\u0433\u043e \u0442\u043e\u043b\u044c\u043a\u043e \u0447\u0435\u0440\u0435\u0437 \u0441\u0432\u043e\u0438 \u043c\u0435\u0442\u043e\u0434\u044b \u0438 \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u0430, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u044e\u0442 \u043f\u0440\u0430\u0432\u0438\u043b\u0430. \u0421\u043e\u0434\u0435\u0440\u0436\u0430\u043d\u0438\u0435 \u041c\u0438\u043d\u0438-\u0441\u043b\u043e\u0432\u0430\u0440\u044c: \u0441\u0431\u043e\u0440\u043a\u0430, \u0444\u0430\u0439\u043b, [&hellip;]<\/p>\n","protected":false},"author":11,"featured_media":5409,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[81,75,65],"class_list":["post-5408","post","type-post","status-publish","format-standard","has-post-thumbnail","","category-polza","tag-c-2","tag-java","tag-programmirovanie"],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 5.0.3 - aioseo.com -->\n\t<meta name=\"description\" content=\"\u0427\u0442\u043e \u0442\u0430\u043a\u043e\u0435 internal \u0432 C# \u0438 \u0447\u0435\u043c \u0441\u0431\u043e\u0440\u043a\u0430 \u043e\u0442\u043b\u0438\u0447\u0430\u0435\u0442\u0441\u044f \u043e\u0442 \u0444\u0430\u0439\u043b\u0430. \u0412\u0441\u0435 \u043c\u043e\u0434\u0438\u0444\u0438\u043a\u0430\u0442\u043e\u0440\u044b \u0434\u043e\u0441\u0442\u0443\u043f\u0430 (public, private, protected, file) \u0432 \u0442\u0430\u0431\u043b\u0438\u0446\u0435, \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044f, \u043e\u0448\u0438\u0431\u043a\u0438 \u043a\u043e\u043c\u043f\u0438\u043b\u044f\u0442\u043e\u0440\u0430 \u0438 \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u0430.\" \/>\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<meta name=\"author\" content=\"A. Pavlenko\"\/>\n\t<link rel=\"canonical\" href=\"https:\/\/otus.ru\/journal\/inkapsulyaciya-i-modifikatory-dostupa\/\" \/>\n\t\t<meta name=\"generator\" content=\"All in One SEO (AIOSEO) 5.0.3\" \/>\n\t\t<script type=\"application\/ld+json\" class=\"aioseo-schema\">\n\t\t\t{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/otus.ru\\\/journal\\\/inkapsulyaciya-i-modifikatory-dostupa\\\/#article\",\"name\":\"\\u041c\\u043e\\u0434\\u0438\\u0444\\u0438\\u043a\\u0430\\u0442\\u043e\\u0440\\u044b \\u0434\\u043e\\u0441\\u0442\\u0443\\u043f\\u0430 \\u0432 C#: internal, private, protected | Otus\",\"headline\":\"\\u0418\\u043d\\u043a\\u0430\\u043f\\u0441\\u0443\\u043b\\u044f\\u0446\\u0438\\u044f \\u0438 \\u043c\\u043e\\u0434\\u0438\\u0444\\u0438\\u043a\\u0430\\u0442\\u043e\\u0440\\u044b \\u0434\\u043e\\u0441\\u0442\\u0443\\u043f\\u0430 \\u0432 C#: \\u0447\\u0442\\u043e \\u0442\\u0430\\u043a\\u043e\\u0435 internal, private, protected\",\"author\":{\"@id\":\"https:\\\/\\\/otus.ru\\\/journal\\\/author\\\/a-pavlenko\\\/#author\"},\"publisher\":{\"@id\":\"https:\\\/\\\/otus.ru\\\/journal\\\/#organization\"},\"image\":{\"@type\":\"ImageObject\",\"url\":\"https:\\\/\\\/otus.ru\\\/journal\\\/wp-content\\\/uploads\\\/2023\\\/02\\\/oj-1080x720-14.jpg\",\"width\":2245,\"height\":1587},\"datePublished\":\"2026-09-24T09:00:00+00:00\",\"dateModified\":\"2026-09-25T15:27:30+00:00\",\"inLanguage\":\"ru-RU\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/otus.ru\\\/journal\\\/inkapsulyaciya-i-modifikatory-dostupa\\\/#webpage\"},\"isPartOf\":{\"@id\":\"https:\\\/\\\/otus.ru\\\/journal\\\/inkapsulyaciya-i-modifikatory-dostupa\\\/#webpage\"},\"articleSection\":\"\\u041f\\u043e\\u043b\\u0435\\u0437\\u043d\\u043e\\u0435, C#, Java, \\u043f\\u0440\\u043e\\u0433\\u0440\\u0430\\u043c\\u043c\\u0438\\u0440\\u043e\\u0432\\u0430\\u043d\\u0438\\u0435\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/otus.ru\\\/journal\\\/inkapsulyaciya-i-modifikatory-dostupa\\\/#breadcrumblist\",\"itemListElement\":[{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/otus.ru\\\/journal\\\/#listItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/otus.ru\\\/journal\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/otus.ru\\\/journal\\\/category\\\/polza\\\/#listItem\",\"name\":\"\\u041f\\u043e\\u043b\\u0435\\u0437\\u043d\\u043e\\u0435\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/otus.ru\\\/journal\\\/category\\\/polza\\\/#listItem\",\"position\":2,\"name\":\"\\u041f\\u043e\\u043b\\u0435\\u0437\\u043d\\u043e\\u0435\",\"item\":\"https:\\\/\\\/otus.ru\\\/journal\\\/category\\\/polza\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/otus.ru\\\/journal\\\/inkapsulyaciya-i-modifikatory-dostupa\\\/#listItem\",\"name\":\"\\u0418\\u043d\\u043a\\u0430\\u043f\\u0441\\u0443\\u043b\\u044f\\u0446\\u0438\\u044f \\u0438 \\u043c\\u043e\\u0434\\u0438\\u0444\\u0438\\u043a\\u0430\\u0442\\u043e\\u0440\\u044b \\u0434\\u043e\\u0441\\u0442\\u0443\\u043f\\u0430 \\u0432 C#: \\u0447\\u0442\\u043e \\u0442\\u0430\\u043a\\u043e\\u0435 internal, private, protected\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/otus.ru\\\/journal\\\/#listItem\",\"name\":\"Home\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/otus.ru\\\/journal\\\/inkapsulyaciya-i-modifikatory-dostupa\\\/#listItem\",\"position\":3,\"name\":\"\\u0418\\u043d\\u043a\\u0430\\u043f\\u0441\\u0443\\u043b\\u044f\\u0446\\u0438\\u044f \\u0438 \\u043c\\u043e\\u0434\\u0438\\u0444\\u0438\\u043a\\u0430\\u0442\\u043e\\u0440\\u044b \\u0434\\u043e\\u0441\\u0442\\u0443\\u043f\\u0430 \\u0432 C#: \\u0447\\u0442\\u043e \\u0442\\u0430\\u043a\\u043e\\u0435 internal, private, protected\",\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/otus.ru\\\/journal\\\/category\\\/polza\\\/#listItem\",\"name\":\"\\u041f\\u043e\\u043b\\u0435\\u0437\\u043d\\u043e\\u0435\"}}]},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/otus.ru\\\/journal\\\/#organization\",\"name\":\"\\u041e\\u0442\\u0443\\u0441 \\u043e\\u043d\\u043b\\u0430\\u0439\\u043d-\\u043e\\u0431\\u0440\\u0430\\u0437\\u043e\\u0432\\u0430\\u043d\\u0438\\u0435\",\"description\":\"\\u0411\\u043b\\u043e\\u0433 \\u043f\\u0440\\u043e IT\",\"url\":\"https:\\\/\\\/otus.ru\\\/journal\\\/\",\"telephone\":\"+74999389202\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https:\\\/\\\/otus.ru\\\/journal\\\/wp-content\\\/uploads\\\/2026\\\/04\\\/OTUS-journal-logo-180x180-1.png\",\"@id\":\"https:\\\/\\\/otus.ru\\\/journal\\\/inkapsulyaciya-i-modifikatory-dostupa\\\/#organizationLogo\",\"width\":180,\"height\":180},\"image\":{\"@id\":\"https:\\\/\\\/otus.ru\\\/journal\\\/inkapsulyaciya-i-modifikatory-dostupa\\\/#organizationLogo\"},\"sameAs\":[\"https:\\\/\\\/www.youtube.com\\\/channel\\\/UCetgtvy93o3i3CvyGXKFU3g\"]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/otus.ru\\\/journal\\\/author\\\/a-pavlenko\\\/#author\",\"url\":\"https:\\\/\\\/otus.ru\\\/journal\\\/author\\\/a-pavlenko\\\/\",\"name\":\"A. Pavlenko\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\\\/\\\/otus.ru\\\/journal\\\/inkapsulyaciya-i-modifikatory-dostupa\\\/#authorImage\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/13488c7d5b657aaaf1808afd398f71e0225df07dd94eb7e5fcdfc45feff43cb5?s=96&d=mm&r=g\",\"width\":96,\"height\":96,\"caption\":\"A. Pavlenko\"}},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/otus.ru\\\/journal\\\/inkapsulyaciya-i-modifikatory-dostupa\\\/#webpage\",\"url\":\"https:\\\/\\\/otus.ru\\\/journal\\\/inkapsulyaciya-i-modifikatory-dostupa\\\/\",\"name\":\"\\u041c\\u043e\\u0434\\u0438\\u0444\\u0438\\u043a\\u0430\\u0442\\u043e\\u0440\\u044b \\u0434\\u043e\\u0441\\u0442\\u0443\\u043f\\u0430 \\u0432 C#: internal, private, protected | Otus\",\"description\":\"\\u0427\\u0442\\u043e \\u0442\\u0430\\u043a\\u043e\\u0435 internal \\u0432 C# \\u0438 \\u0447\\u0435\\u043c \\u0441\\u0431\\u043e\\u0440\\u043a\\u0430 \\u043e\\u0442\\u043b\\u0438\\u0447\\u0430\\u0435\\u0442\\u0441\\u044f \\u043e\\u0442 \\u0444\\u0430\\u0439\\u043b\\u0430. \\u0412\\u0441\\u0435 \\u043c\\u043e\\u0434\\u0438\\u0444\\u0438\\u043a\\u0430\\u0442\\u043e\\u0440\\u044b \\u0434\\u043e\\u0441\\u0442\\u0443\\u043f\\u0430 (public, private, protected, file) \\u0432 \\u0442\\u0430\\u0431\\u043b\\u0438\\u0446\\u0435, \\u0443\\u043c\\u043e\\u043b\\u0447\\u0430\\u043d\\u0438\\u044f, \\u043e\\u0448\\u0438\\u0431\\u043a\\u0438 \\u043a\\u043e\\u043c\\u043f\\u0438\\u043b\\u044f\\u0442\\u043e\\u0440\\u0430 \\u0438 \\u0441\\u0432\\u043e\\u0439\\u0441\\u0442\\u0432\\u0430.\",\"inLanguage\":\"ru-RU\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/otus.ru\\\/journal\\\/#website\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/otus.ru\\\/journal\\\/inkapsulyaciya-i-modifikatory-dostupa\\\/#breadcrumblist\"},\"author\":{\"@id\":\"https:\\\/\\\/otus.ru\\\/journal\\\/author\\\/a-pavlenko\\\/#author\"},\"creator\":{\"@id\":\"https:\\\/\\\/otus.ru\\\/journal\\\/author\\\/a-pavlenko\\\/#author\"},\"image\":{\"@type\":\"ImageObject\",\"url\":\"https:\\\/\\\/otus.ru\\\/journal\\\/wp-content\\\/uploads\\\/2023\\\/02\\\/oj-1080x720-14.jpg\",\"@id\":\"https:\\\/\\\/otus.ru\\\/journal\\\/inkapsulyaciya-i-modifikatory-dostupa\\\/#mainImage\",\"width\":2245,\"height\":1587},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/otus.ru\\\/journal\\\/inkapsulyaciya-i-modifikatory-dostupa\\\/#mainImage\"},\"datePublished\":\"2026-09-24T09:00:00+00:00\",\"dateModified\":\"2026-09-25T15:27:30+00:00\"},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/otus.ru\\\/journal\\\/#website\",\"url\":\"https:\\\/\\\/otus.ru\\\/journal\\\/\",\"name\":\"OTUS \\u0416\\u0443\\u0440\\u043d\\u0430\\u043b - \\u0411\\u043b\\u043e\\u0433 \\u043f\\u0440\\u043e IT\",\"alternateName\":\"OTUS \\u0416\\u0443\\u0440\\u043d\\u0430\\u043b\",\"description\":\"\\u0411\\u043b\\u043e\\u0433 \\u043f\\u0440\\u043e IT\",\"inLanguage\":\"ru-RU\",\"publisher\":{\"@id\":\"https:\\\/\\\/otus.ru\\\/journal\\\/#organization\"}}]}\n\t\t<\/script>\n\t\t<!-- All in One SEO -->\n\n","aioseo_head_json":{"title":"\u041c\u043e\u0434\u0438\u0444\u0438\u043a\u0430\u0442\u043e\u0440\u044b \u0434\u043e\u0441\u0442\u0443\u043f\u0430 \u0432 C#: internal, private, protected | Otus","description":"\u0427\u0442\u043e \u0442\u0430\u043a\u043e\u0435 internal \u0432 C# \u0438 \u0447\u0435\u043c \u0441\u0431\u043e\u0440\u043a\u0430 \u043e\u0442\u043b\u0438\u0447\u0430\u0435\u0442\u0441\u044f \u043e\u0442 \u0444\u0430\u0439\u043b\u0430. \u0412\u0441\u0435 \u043c\u043e\u0434\u0438\u0444\u0438\u043a\u0430\u0442\u043e\u0440\u044b \u0434\u043e\u0441\u0442\u0443\u043f\u0430 (public, private, protected, file) \u0432 \u0442\u0430\u0431\u043b\u0438\u0446\u0435, \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044f, \u043e\u0448\u0438\u0431\u043a\u0438 \u043a\u043e\u043c\u043f\u0438\u043b\u044f\u0442\u043e\u0440\u0430 \u0438 \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u0430.","canonical_url":"https:\/\/otus.ru\/journal\/inkapsulyaciya-i-modifikatory-dostupa\/","robots":"max-image-preview:large","keywords":"","webmasterTools":{"miscellaneous":""},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/otus.ru\/journal\/inkapsulyaciya-i-modifikatory-dostupa\/#article","name":"\u041c\u043e\u0434\u0438\u0444\u0438\u043a\u0430\u0442\u043e\u0440\u044b \u0434\u043e\u0441\u0442\u0443\u043f\u0430 \u0432 C#: internal, private, protected | Otus","headline":"\u0418\u043d\u043a\u0430\u043f\u0441\u0443\u043b\u044f\u0446\u0438\u044f \u0438 \u043c\u043e\u0434\u0438\u0444\u0438\u043a\u0430\u0442\u043e\u0440\u044b \u0434\u043e\u0441\u0442\u0443\u043f\u0430 \u0432 C#: \u0447\u0442\u043e \u0442\u0430\u043a\u043e\u0435 internal, private, protected","author":{"@id":"https:\/\/otus.ru\/journal\/author\/a-pavlenko\/#author"},"publisher":{"@id":"https:\/\/otus.ru\/journal\/#organization"},"image":{"@type":"ImageObject","url":"https:\/\/otus.ru\/journal\/wp-content\/uploads\/2023\/02\/oj-1080x720-14.jpg","width":2245,"height":1587},"datePublished":"2026-09-24T09:00:00+00:00","dateModified":"2026-09-25T15:27:30+00:00","inLanguage":"ru-RU","mainEntityOfPage":{"@id":"https:\/\/otus.ru\/journal\/inkapsulyaciya-i-modifikatory-dostupa\/#webpage"},"isPartOf":{"@id":"https:\/\/otus.ru\/journal\/inkapsulyaciya-i-modifikatory-dostupa\/#webpage"},"articleSection":"\u041f\u043e\u043b\u0435\u0437\u043d\u043e\u0435, C#, Java, \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435"},{"@type":"BreadcrumbList","@id":"https:\/\/otus.ru\/journal\/inkapsulyaciya-i-modifikatory-dostupa\/#breadcrumblist","itemListElement":[{"@type":"ListItem","@id":"https:\/\/otus.ru\/journal\/#listItem","position":1,"name":"Home","item":"https:\/\/otus.ru\/journal\/","nextItem":{"@type":"ListItem","@id":"https:\/\/otus.ru\/journal\/category\/polza\/#listItem","name":"\u041f\u043e\u043b\u0435\u0437\u043d\u043e\u0435"}},{"@type":"ListItem","@id":"https:\/\/otus.ru\/journal\/category\/polza\/#listItem","position":2,"name":"\u041f\u043e\u043b\u0435\u0437\u043d\u043e\u0435","item":"https:\/\/otus.ru\/journal\/category\/polza\/","nextItem":{"@type":"ListItem","@id":"https:\/\/otus.ru\/journal\/inkapsulyaciya-i-modifikatory-dostupa\/#listItem","name":"\u0418\u043d\u043a\u0430\u043f\u0441\u0443\u043b\u044f\u0446\u0438\u044f \u0438 \u043c\u043e\u0434\u0438\u0444\u0438\u043a\u0430\u0442\u043e\u0440\u044b \u0434\u043e\u0441\u0442\u0443\u043f\u0430 \u0432 C#: \u0447\u0442\u043e \u0442\u0430\u043a\u043e\u0435 internal, private, protected"},"previousItem":{"@type":"ListItem","@id":"https:\/\/otus.ru\/journal\/#listItem","name":"Home"}},{"@type":"ListItem","@id":"https:\/\/otus.ru\/journal\/inkapsulyaciya-i-modifikatory-dostupa\/#listItem","position":3,"name":"\u0418\u043d\u043a\u0430\u043f\u0441\u0443\u043b\u044f\u0446\u0438\u044f \u0438 \u043c\u043e\u0434\u0438\u0444\u0438\u043a\u0430\u0442\u043e\u0440\u044b \u0434\u043e\u0441\u0442\u0443\u043f\u0430 \u0432 C#: \u0447\u0442\u043e \u0442\u0430\u043a\u043e\u0435 internal, private, protected","previousItem":{"@type":"ListItem","@id":"https:\/\/otus.ru\/journal\/category\/polza\/#listItem","name":"\u041f\u043e\u043b\u0435\u0437\u043d\u043e\u0435"}}]},{"@type":"Organization","@id":"https:\/\/otus.ru\/journal\/#organization","name":"\u041e\u0442\u0443\u0441 \u043e\u043d\u043b\u0430\u0439\u043d-\u043e\u0431\u0440\u0430\u0437\u043e\u0432\u0430\u043d\u0438\u0435","description":"\u0411\u043b\u043e\u0433 \u043f\u0440\u043e IT","url":"https:\/\/otus.ru\/journal\/","telephone":"+74999389202","logo":{"@type":"ImageObject","url":"https:\/\/otus.ru\/journal\/wp-content\/uploads\/2026\/04\/OTUS-journal-logo-180x180-1.png","@id":"https:\/\/otus.ru\/journal\/inkapsulyaciya-i-modifikatory-dostupa\/#organizationLogo","width":180,"height":180},"image":{"@id":"https:\/\/otus.ru\/journal\/inkapsulyaciya-i-modifikatory-dostupa\/#organizationLogo"},"sameAs":["https:\/\/www.youtube.com\/channel\/UCetgtvy93o3i3CvyGXKFU3g"]},{"@type":"Person","@id":"https:\/\/otus.ru\/journal\/author\/a-pavlenko\/#author","url":"https:\/\/otus.ru\/journal\/author\/a-pavlenko\/","name":"A. Pavlenko","image":{"@type":"ImageObject","@id":"https:\/\/otus.ru\/journal\/inkapsulyaciya-i-modifikatory-dostupa\/#authorImage","url":"https:\/\/secure.gravatar.com\/avatar\/13488c7d5b657aaaf1808afd398f71e0225df07dd94eb7e5fcdfc45feff43cb5?s=96&d=mm&r=g","width":96,"height":96,"caption":"A. Pavlenko"}},{"@type":"WebPage","@id":"https:\/\/otus.ru\/journal\/inkapsulyaciya-i-modifikatory-dostupa\/#webpage","url":"https:\/\/otus.ru\/journal\/inkapsulyaciya-i-modifikatory-dostupa\/","name":"\u041c\u043e\u0434\u0438\u0444\u0438\u043a\u0430\u0442\u043e\u0440\u044b \u0434\u043e\u0441\u0442\u0443\u043f\u0430 \u0432 C#: internal, private, protected | Otus","description":"\u0427\u0442\u043e \u0442\u0430\u043a\u043e\u0435 internal \u0432 C# \u0438 \u0447\u0435\u043c \u0441\u0431\u043e\u0440\u043a\u0430 \u043e\u0442\u043b\u0438\u0447\u0430\u0435\u0442\u0441\u044f \u043e\u0442 \u0444\u0430\u0439\u043b\u0430. \u0412\u0441\u0435 \u043c\u043e\u0434\u0438\u0444\u0438\u043a\u0430\u0442\u043e\u0440\u044b \u0434\u043e\u0441\u0442\u0443\u043f\u0430 (public, private, protected, file) \u0432 \u0442\u0430\u0431\u043b\u0438\u0446\u0435, \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044f, \u043e\u0448\u0438\u0431\u043a\u0438 \u043a\u043e\u043c\u043f\u0438\u043b\u044f\u0442\u043e\u0440\u0430 \u0438 \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u0430.","inLanguage":"ru-RU","isPartOf":{"@id":"https:\/\/otus.ru\/journal\/#website"},"breadcrumb":{"@id":"https:\/\/otus.ru\/journal\/inkapsulyaciya-i-modifikatory-dostupa\/#breadcrumblist"},"author":{"@id":"https:\/\/otus.ru\/journal\/author\/a-pavlenko\/#author"},"creator":{"@id":"https:\/\/otus.ru\/journal\/author\/a-pavlenko\/#author"},"image":{"@type":"ImageObject","url":"https:\/\/otus.ru\/journal\/wp-content\/uploads\/2023\/02\/oj-1080x720-14.jpg","@id":"https:\/\/otus.ru\/journal\/inkapsulyaciya-i-modifikatory-dostupa\/#mainImage","width":2245,"height":1587},"primaryImageOfPage":{"@id":"https:\/\/otus.ru\/journal\/inkapsulyaciya-i-modifikatory-dostupa\/#mainImage"},"datePublished":"2026-09-24T09:00:00+00:00","dateModified":"2026-09-25T15:27:30+00:00"},{"@type":"WebSite","@id":"https:\/\/otus.ru\/journal\/#website","url":"https:\/\/otus.ru\/journal\/","name":"OTUS \u0416\u0443\u0440\u043d\u0430\u043b - \u0411\u043b\u043e\u0433 \u043f\u0440\u043e IT","alternateName":"OTUS \u0416\u0443\u0440\u043d\u0430\u043b","description":"\u0411\u043b\u043e\u0433 \u043f\u0440\u043e IT","inLanguage":"ru-RU","publisher":{"@id":"https:\/\/otus.ru\/journal\/#organization"}}]}},"aioseo_meta_data":{"post_id":"5408","title":"\u041c\u043e\u0434\u0438\u0444\u0438\u043a\u0430\u0442\u043e\u0440\u044b \u0434\u043e\u0441\u0442\u0443\u043f\u0430 \u0432 C#: internal, private, protected | Otus","description":"\u0427\u0442\u043e \u0442\u0430\u043a\u043e\u0435 internal \u0432 C# \u0438 \u0447\u0435\u043c \u0441\u0431\u043e\u0440\u043a\u0430 \u043e\u0442\u043b\u0438\u0447\u0430\u0435\u0442\u0441\u044f \u043e\u0442 \u0444\u0430\u0439\u043b\u0430. \u0412\u0441\u0435 \u043c\u043e\u0434\u0438\u0444\u0438\u043a\u0430\u0442\u043e\u0440\u044b \u0434\u043e\u0441\u0442\u0443\u043f\u0430 (public, private, protected, file) \u0432 \u0442\u0430\u0431\u043b\u0438\u0446\u0435, \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044f, \u043e\u0448\u0438\u0431\u043a\u0438 \u043a\u043e\u043c\u043f\u0438\u043b\u044f\u0442\u043e\u0440\u0430 \u0438 \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u0430.","keywords":[],"keyphrases":{"focus":{"keyphrase":"","score":0,"analysis":{"keyphraseInTitle":{"score":0,"maxScore":9,"error":1}}},"additional":[]},"primary_term":null,"canonical_url":null,"og_title":null,"og_description":null,"og_object_type":"default","og_image_type":"default","og_image_url":null,"og_image_width":null,"og_image_height":null,"og_image_custom_url":null,"og_image_custom_fields":null,"og_video":"","og_custom_url":null,"og_article_section":null,"og_article_tags":[],"twitter_use_og":false,"twitter_card":"default","twitter_image_type":"default","twitter_image_url":null,"twitter_image_custom_url":null,"twitter_image_custom_fields":null,"twitter_title":null,"twitter_description":null,"schema":{"blockGraphs":[],"customGraphs":[],"default":{"data":{"Article":[],"Course":[],"Dataset":[],"FAQPage":[],"Movie":[],"Person":[],"Product":[],"ProductReview":[],"Car":[],"Recipe":[],"Service":[],"SoftwareApplication":[],"WebPage":[]},"graphName":"Article","isEnabled":true},"graphs":[]},"schema_type":"default","schema_type_options":null,"pillar_content":false,"robots_default":true,"robots_noindex":false,"robots_noarchive":false,"robots_nosnippet":false,"robots_nofollow":false,"robots_noimageindex":false,"robots_noodp":false,"robots_notranslate":false,"robots_max_snippet":"-1","robots_max_videopreview":"-1","robots_max_imagepreview":"large","priority":null,"frequency":"default","location":null,"local_seo":null,"breadcrumb_settings":null,"limit_modified_date":false,"ai":null,"created":"2023-02-05 10:48:30","updated":"2026-09-25 18:00:02","seo_analyzer_scan_date":null,"focus_keyword":null,"additional_keywords":null,"truseo_locale":null},"aioseo_breadcrumb":"<div class=\"aioseo-breadcrumbs\"><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/otus.ru\/journal\/\" title=\"Home\">Home<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">\u00bb<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/otus.ru\/journal\/category\/polza\/\" title=\"\u041f\u043e\u043b\u0435\u0437\u043d\u043e\u0435\">\u041f\u043e\u043b\u0435\u0437\u043d\u043e\u0435<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">\u00bb<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\t\u0418\u043d\u043a\u0430\u043f\u0441\u0443\u043b\u044f\u0446\u0438\u044f \u0438 \u043c\u043e\u0434\u0438\u0444\u0438\u043a\u0430\u0442\u043e\u0440\u044b \u0434\u043e\u0441\u0442\u0443\u043f\u0430 \u0432 C#: \u0447\u0442\u043e \u0442\u0430\u043a\u043e\u0435 internal, private, protected\n\t\t<\/span><\/div>","aioseo_breadcrumb_json":[{"label":"Home","link":"https:\/\/otus.ru\/journal\/"},{"label":"\u041f\u043e\u043b\u0435\u0437\u043d\u043e\u0435","link":"https:\/\/otus.ru\/journal\/category\/polza\/"},{"label":"\u0418\u043d\u043a\u0430\u043f\u0441\u0443\u043b\u044f\u0446\u0438\u044f \u0438 \u043c\u043e\u0434\u0438\u0444\u0438\u043a\u0430\u0442\u043e\u0440\u044b \u0434\u043e\u0441\u0442\u0443\u043f\u0430 \u0432 C#: \u0447\u0442\u043e \u0442\u0430\u043a\u043e\u0435 internal, private, protected","link":"https:\/\/otus.ru\/journal\/inkapsulyaciya-i-modifikatory-dostupa\/"}],"_links":{"self":[{"href":"https:\/\/otus.ru\/journal\/wp-json\/wp\/v2\/posts\/5408","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/otus.ru\/journal\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/otus.ru\/journal\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/otus.ru\/journal\/wp-json\/wp\/v2\/users\/11"}],"replies":[{"embeddable":true,"href":"https:\/\/otus.ru\/journal\/wp-json\/wp\/v2\/comments?post=5408"}],"version-history":[{"count":4,"href":"https:\/\/otus.ru\/journal\/wp-json\/wp\/v2\/posts\/5408\/revisions"}],"predecessor-version":[{"id":12907,"href":"https:\/\/otus.ru\/journal\/wp-json\/wp\/v2\/posts\/5408\/revisions\/12907"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/otus.ru\/journal\/wp-json\/wp\/v2\/media\/5409"}],"wp:attachment":[{"href":"https:\/\/otus.ru\/journal\/wp-json\/wp\/v2\/media?parent=5408"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/otus.ru\/journal\/wp-json\/wp\/v2\/categories?post=5408"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/otus.ru\/journal\/wp-json\/wp\/v2\/tags?post=5408"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}