{"id":6097,"date":"2025-01-24T17:48:38","date_gmt":"2025-01-24T17:48:38","guid":{"rendered":"http:\/\/localhost:8080\/csharp-test\/docs\/c\/encapsulation-and-abstraction\/protected\/"},"modified":"2025-03-26T03:48:09","modified_gmt":"2025-03-26T03:48:09","slug":"protected","status":"publish","type":"docs","link":"https:\/\/www.completecsharptutorial.com\/docs\/csharp\/encapsulation\/protected\/","title":{"rendered":"Protected"},"content":{"rendered":"\t\t<div data-elementor-type=\"wp-post\" data-elementor-id=\"6097\" class=\"elementor elementor-6097\">\n\t\t\t\t<div class=\"elementor-element elementor-element-cd736cd e-flex e-con-boxed e-con e-parent\" data-id=\"cd736cd\" data-element_type=\"container\" data-e-type=\"container\">\n\t\t\t\t\t<div class=\"e-con-inner\">\n\t\t\t\t<div class=\"elementor-element elementor-element-7ece0ce elementor-widget elementor-widget-heading\" data-id=\"7ece0ce\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<h1 class=\"elementor-heading-title elementor-size-default\">Understanding C# Protected Access Specifiers with Examples<\/h1>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t<div class=\"elementor-element elementor-element-f59f768 e-flex e-con-boxed e-con e-parent\" data-id=\"f59f768\" data-element_type=\"container\" data-e-type=\"container\">\n\t\t\t\t\t<div class=\"e-con-inner\">\n\t\t\t\t<div class=\"elementor-element elementor-element-4ec5f58 elementor-widget elementor-widget-text-editor\" data-id=\"4ec5f58\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<h3 data-start=\"728\" data-end=\"749\"><strong data-start=\"731\" data-end=\"747\">Introduction<\/strong><\/h3><p data-start=\"750\" data-end=\"969\">Imagine you have a secret recipe \ud83d\udcdd for your grandma\u2019s delicious cookies \ud83c\udf6a. You don\u2019t want the whole world to know it, but you\u2019d love to pass it down to your kids. That means the recipe should stay within the family.<\/p><p data-start=\"971\" data-end=\"1129\">That\u2019s exactly how <strong data-start=\"990\" data-end=\"1024\">C# Protected Access Specifiers<\/strong> work! They allow access within a class and its child (derived) classes, but no outsiders can touch it.<\/p><p data-start=\"1131\" data-end=\"1176\">Sounds interesting? Let\u2019s break it down! \ud83d\ude03<\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t<div class=\"elementor-element elementor-element-0b424b6 e-flex e-con-boxed e-con e-parent\" data-id=\"0b424b6\" data-element_type=\"container\" data-e-type=\"container\">\n\t\t\t\t\t<div class=\"e-con-inner\">\n\t\t\t\t<div class=\"elementor-element elementor-element-72c7806 elementor-widget elementor-widget-docly_alerts_box\" data-id=\"72c7806\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"docly_alerts_box.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t                    <div class=\"alert media message_alert alert-info fade show\" role=\"alert\">\r\n                <i ><\/i>\r\n                <div class=\"media-body\">\r\n                                            <h5 class=\"title\"> What You Are Going to Learn in This Lesson<\/h5>\r\n                                        <p class=\"alert\" data-start=\"340\" data-end=\"668\">\u2714\ufe0f What <strong data-start=\"396\" data-end=\"430\">C# Protected Access Specifiers<\/strong> are.<br data-start=\"435\" data-end=\"438\" \/>\u2714\ufe0f How they work with a simple syntax.<br data-start=\"475\" data-end=\"478\" \/>\u2714\ufe0f A beginner-friendly code example.<br data-start=\"513\" data-end=\"516\" \/>\u2714\ufe0f A real-world scenario that makes everything crystal clear.<br data-start=\"576\" data-end=\"579\" \/>\u2714\ufe0f Full code with output and easy explanation.<br data-start=\"624\" data-end=\"627\" \/>\u2714\ufe0f What\u2019s next in your learning journey.<\/p><p data-start=\"670\" data-end=\"721\">Let&#8217;s keep it simple and fun. Ready? Let\u2019s go! \ud83d\ude80<\/p>                                    <\/div>\r\n            <\/div>\r\n        \r\n        \r\n        \r\n        \t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t<div class=\"elementor-element elementor-element-ff27b5a e-flex e-con-boxed e-con e-parent\" data-id=\"ff27b5a\" data-element_type=\"container\" data-e-type=\"container\">\n\t\t\t\t\t<div class=\"e-con-inner\">\n\t\t\t\t<div class=\"elementor-element elementor-element-57415d0 elementor-widget elementor-widget-text-editor\" data-id=\"57415d0\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<h3 data-start=\"1183\" data-end=\"1235\"><strong data-start=\"1186\" data-end=\"1233\">What are Protected Access Specifiers in C#?<\/strong><\/h3><p data-start=\"1236\" data-end=\"1356\">A <strong data-start=\"1238\" data-end=\"1251\">protected<\/strong> member is like a family secret\u2014only the class itself and its children (derived classes) can access it.<\/p><h4 data-start=\"1358\" data-end=\"1379\"><strong data-start=\"1362\" data-end=\"1377\">Key points:<\/strong><\/h4><p class=\"alert\" data-start=\"1380\" data-end=\"1539\">\ud83d\udd39 Declared using the <code data-start=\"1402\" data-end=\"1413\">protected<\/code> keyword.<br data-start=\"1422\" data-end=\"1425\" \/>\ud83d\udd39 Accessible in the same class and in derived (child) classes.<br data-start=\"1488\" data-end=\"1491\" \/>\ud83d\udd39 Not accessible outside the class hierarchy.<\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t<div class=\"elementor-element elementor-element-41eb068 e-flex e-con-boxed e-con e-parent\" data-id=\"41eb068\" data-element_type=\"container\" data-e-type=\"container\">\n\t\t\t\t\t<div class=\"e-con-inner\">\n\t\t\t\t<div class=\"elementor-element elementor-element-a6fd296 elementor-widget elementor-widget-heading\" data-id=\"a6fd296\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<h3 class=\"elementor-heading-title elementor-size-default\">Syntax<\/h3>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-ac33205 elementor-widget elementor-widget-docly_code_syntax_highlighter\" data-id=\"ac33205\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"docly_code_syntax_highlighter.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t                    <div class=\"docly-source-code prism\" data-lng-type=\"csharp\">\r\n\t\t\t<pre>\r\n\t\t\t\t<code class=\"language-csharp\">\r\n\t\t\t\t\tprotected dataType variableName;\r\n\r\nprotected returnType MethodName()  \r\n{  \r\n    \/\/ Code inside  \r\n}\r\n\t\t\t\t<\/code>\r\n\t\t\t<\/pre>\r\n            <\/div>\r\n                \t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-351cec4 elementor-widget elementor-widget-text-editor\" data-id=\"351cec4\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p>It\u2019s as simple as adding the <code data-start=\"1717\" data-end=\"1728\">protected<\/code> keyword before a variable or method! \ud83d\ude4c<\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t<div class=\"elementor-element elementor-element-6954316 e-flex e-con-boxed e-con e-parent\" data-id=\"6954316\" data-element_type=\"container\" data-e-type=\"container\">\n\t\t\t\t\t<div class=\"e-con-inner\">\n\t\t\t\t<div class=\"elementor-element elementor-element-c1f1cd3 elementor-widget elementor-widget-heading\" data-id=\"c1f1cd3\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<h3 class=\"elementor-heading-title elementor-size-default\">Simple Example to Understand Protected Access<\/h3>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-2d74f33 elementor-widget elementor-widget-docly_code_syntax_highlighter\" data-id=\"2d74f33\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"docly_code_syntax_highlighter.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t                    <div class=\"docly-source-code prism\" data-lng-type=\"csharp\">\r\n\t\t\t<pre>\r\n\t\t\t\t<code class=\"language-csharp\">\r\n\t\t\t\t\tusing System;\r\n\r\nclass Animal\r\n{\r\n    protected string name;  \/\/ Protected variable\r\n\r\n    public void SetName(string animalName)\r\n    {\r\n        name = animalName;  \/\/ Can be accessed inside this class\r\n    }\r\n}\r\n\r\n\/\/ Dog is inheriting from Animal\r\nclass Dog : Animal\r\n{\r\n    public void ShowName()\r\n    {\r\n        Console.WriteLine(&quot;Dog&#039;s Name: &quot; + name);  \/\/ Can access &#039;name&#039; inside derived class\r\n    }\r\n}\r\n\r\nclass Program\r\n{\r\n    static void Main()\r\n    {\r\n        Dog myDog = new Dog();\r\n        myDog.SetName(&quot;Buddy&quot;);  \/\/ Setting name using public method\r\n        myDog.ShowName();        \/\/ Displaying name using protected access\r\n\r\n        \/\/ myDog.name = &quot;Max&quot;;  \/\/ \u274c Error! &#039;name&#039; is protected and can&#039;t be accessed directly.\r\n    }\r\n}\r\n\t\t\t\t<\/code>\r\n\t\t\t<\/pre>\r\n            <\/div>\r\n                \t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-e384db2 elementor-widget elementor-widget-text-editor\" data-id=\"e384db2\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p><strong>Output<\/strong><\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-782ab65 elementor-widget elementor-widget-docly_code_syntax_highlighter\" data-id=\"782ab65\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"docly_code_syntax_highlighter.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t                    <div class=\"docly-source-code prism-dark\" data-lng-type=\"csharp\">\r\n\t\t\t<pre>\r\n\t\t\t\t<code class=\"language-csharp\">\r\n\t\t\t\t\tDog&#039;s Name: Buddy\r\n\t\t\t\t<\/code>\r\n\t\t\t<\/pre>\r\n            <\/div>\r\n                \t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-468b71b elementor-widget elementor-widget-text-editor\" data-id=\"468b71b\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<h4 data-start=\"2616\" data-end=\"2652\"><strong data-start=\"2619\" data-end=\"2650\">Code and Output Explanation<\/strong><\/h4><p data-start=\"2653\" data-end=\"2689\">Alright, let\u2019s go step by step! \ud83d\udcdd<\/p><ul class=\"ordered-list steps\" data-start=\"2691\" data-end=\"3084\"><li data-start=\"2691\" data-end=\"2761\">We created an <code data-start=\"2707\" data-end=\"2715\">Animal<\/code> class with a <strong data-start=\"2729\" data-end=\"2742\">protected<\/strong> variable <code data-start=\"2752\" data-end=\"2758\">name<\/code>.<\/li><li data-start=\"2762\" data-end=\"2830\"><code data-start=\"2764\" data-end=\"2773\">SetName<\/code> is a <strong data-start=\"2779\" data-end=\"2789\">public<\/strong> method that assigns a value to <code data-start=\"2821\" data-end=\"2827\">name<\/code>.<\/li><li data-start=\"2831\" data-end=\"2932\">The <code data-start=\"2837\" data-end=\"2842\">Dog<\/code> class <strong data-start=\"2849\" data-end=\"2861\">inherits<\/strong> from <code data-start=\"2867\" data-end=\"2875\">Animal<\/code>, so it can access <code data-start=\"2894\" data-end=\"2900\">name<\/code> inside the <code data-start=\"2912\" data-end=\"2922\">ShowName<\/code> method.<\/li><li data-start=\"2933\" data-end=\"3006\">In <code data-start=\"2938\" data-end=\"2944\">Main<\/code>, we created a <code data-start=\"2959\" data-end=\"2964\">Dog<\/code> object, set its name, and displayed it.<\/li><li data-start=\"3007\" data-end=\"3084\">If we try to access <code data-start=\"3029\" data-end=\"3035\">name<\/code> directly outside the class, C# yells at us! \ud83d\udeab<\/li><\/ul><p data-start=\"3086\" data-end=\"3187\">The magic? \u2728 The protected variable is hidden from outsiders but is available inside child classes.<\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t<div class=\"elementor-element elementor-element-33f110b e-flex e-con-boxed e-con e-parent\" data-id=\"33f110b\" data-element_type=\"container\" data-e-type=\"container\">\n\t\t\t\t\t<div class=\"e-con-inner\">\n\t\t\t\t<div class=\"elementor-element elementor-element-36c0945 elementor-widget elementor-widget-heading\" data-id=\"36c0945\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<h3 class=\"elementor-heading-title elementor-size-default\">Real-World Example: Employee System \ud83c\udfe2<\/h3>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-ebf9531 elementor-widget elementor-widget-text-editor\" data-id=\"ebf9531\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p>Imagine a company where every employee has a salary. This salary should not be changed directly, but a manager (who is also an employee) should be able to see it. Let&#8217;s code that!<\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-e854ad0 elementor-widget elementor-widget-docly_code_syntax_highlighter\" data-id=\"e854ad0\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"docly_code_syntax_highlighter.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t                    <div class=\"docly-source-code prism\" data-lng-type=\"csharp\">\r\n\t\t\t<pre>\r\n\t\t\t\t<code class=\"language-csharp\">\r\n\t\t\t\t\tusing System;\r\n\r\nclass Employee\r\n{\r\n    protected double salary;  \/\/ Protected variable\r\n\r\n    public void SetSalary(double amount)\r\n    {\r\n        if (amount &gt; 0)\r\n        {\r\n            salary = amount;\r\n        }\r\n        else\r\n        {\r\n            Console.WriteLine(&quot;Invalid salary amount!&quot;);\r\n        }\r\n    }\r\n}\r\n\r\nclass Manager : Employee\r\n{\r\n    public void ShowSalary()\r\n    {\r\n        Console.WriteLine($&quot;Manager&#039;s Salary: ${salary}&quot;);  \/\/ Accessing protected variable\r\n    }\r\n}\r\n\r\nclass Program\r\n{\r\n    static void Main()\r\n    {\r\n        Manager manager = new Manager();\r\n        manager.SetSalary(5000);  \/\/ Setting salary\r\n        manager.ShowSalary();      \/\/ Displaying salary\r\n\r\n        \/\/ manager.salary = 10000;  \/\/ \u274c Error! &#039;salary&#039; is protected.\r\n    }\r\n}\r\n\t\t\t\t<\/code>\r\n\t\t\t<\/pre>\r\n            <\/div>\r\n                \t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-45dcf84 elementor-widget elementor-widget-text-editor\" data-id=\"45dcf84\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p><strong>Output<\/strong><\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-b335983 elementor-widget elementor-widget-docly_code_syntax_highlighter\" data-id=\"b335983\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"docly_code_syntax_highlighter.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t                    <div class=\"docly-source-code prism-dark\" data-lng-type=\"csharp\">\r\n\t\t\t<pre>\r\n\t\t\t\t<code class=\"language-csharp\">\r\n\t\t\t\t\tManager&#039;s Salary: $5000\r\n\t\t\t\t<\/code>\r\n\t\t\t<\/pre>\r\n            <\/div>\r\n                \t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t<div class=\"elementor-element elementor-element-830f53c e-flex e-con-boxed e-con e-parent\" data-id=\"830f53c\" data-element_type=\"container\" data-e-type=\"container\">\n\t\t\t\t\t<div class=\"e-con-inner\">\n\t\t\t\t<div class=\"elementor-element elementor-element-032d98b elementor-widget elementor-widget-text-editor\" data-id=\"032d98b\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<h4 data-start=\"4237\" data-end=\"4282\"><strong data-start=\"4240\" data-end=\"4280\">Breaking Down the Real-World Example<\/strong><\/h4><ul class=\"ordered-list steps\" data-start=\"4283\" data-end=\"4679\"><li data-start=\"4283\" data-end=\"4346\">The <code data-start=\"4289\" data-end=\"4299\">Employee<\/code> class has a <strong data-start=\"4312\" data-end=\"4325\">protected<\/strong> <code data-start=\"4326\" data-end=\"4334\">salary<\/code> variable.<\/li><li data-start=\"4347\" data-end=\"4408\">The <code data-start=\"4353\" data-end=\"4364\">SetSalary<\/code> method ensures salaries are set properly.<\/li><li data-start=\"4409\" data-end=\"4509\">The <code data-start=\"4415\" data-end=\"4424\">Manager<\/code> class <strong data-start=\"4431\" data-end=\"4443\">inherits<\/strong> from <code data-start=\"4449\" data-end=\"4459\">Employee<\/code>, so it can access <code data-start=\"4478\" data-end=\"4486\">salary<\/code> inside <code data-start=\"4494\" data-end=\"4506\">ShowSalary<\/code>.<\/li><li data-start=\"4510\" data-end=\"4587\">In <code data-start=\"4515\" data-end=\"4521\">Main<\/code>, we created a <code data-start=\"4536\" data-end=\"4545\">Manager<\/code> object, set a salary, and displayed it.<\/li><li data-start=\"4588\" data-end=\"4679\"><strong data-start=\"4590\" data-end=\"4618\">Protected saved the day!<\/strong> No one outside the class hierarchy can mess with <code data-start=\"4668\" data-end=\"4676\">salary<\/code>.<\/li><\/ul><p data-start=\"4681\" data-end=\"4716\">Real-world security in action! \ud83d\udd25<\/p><h3 data-start=\"4723\" data-end=\"4742\"><strong data-start=\"4726\" data-end=\"4740\">Conclusion<\/strong><\/h3><p data-start=\"4743\" data-end=\"4776\">So, what did we learn today? \ud83e\udd14<\/p><p data-start=\"4778\" data-end=\"4963\"><strong data-start=\"4778\" data-end=\"4812\">C# Protected Access Specifiers<\/strong> are like family secrets\u2014they stay within the class and its children. They provide controlled access, making sure only the right people can use them.<\/p><p data-start=\"4965\" data-end=\"5118\">When should you use <code data-start=\"4985\" data-end=\"4996\">protected<\/code>? Whenever you want child classes to have access to something but keep it hidden from outsiders. Pretty handy, right? \ud83d\ude03<\/p><h3 data-start=\"5125\" data-end=\"5144\"><strong data-start=\"5128\" data-end=\"5142\">Next what?<\/strong><\/h3><p data-start=\"5145\" data-end=\"5244\">Boom! \ud83d\udca5 You just mastered <strong data-start=\"5172\" data-end=\"5206\">C# Protected Access Specifiers<\/strong>! Feeling like a pro? You should! \ud83d\ude0e<\/p><p data-start=\"5246\" data-end=\"5382\">Next up, we\u2019ll dive into <strong data-start=\"5271\" data-end=\"5307\">Internal Access Specifiers in C#<\/strong>. It\u2019s another cool way to control access in your code. Don\u2019t miss it! \ud83d\ude80<\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t","protected":false},"excerpt":{"rendered":"<p>Learn C# Protected Access Specifiers with simple words and fun examples. Check out a real-world Protected example C#, complete code, and clear explanations.<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":6087,"menu_order":143,"comment_status":"open","ping_status":"closed","template":"","doc_tag":[],"class_list":["post-6097","docs","type-docs","status-publish","hentry","no-post-thumbnail"],"acf":[],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.completecsharptutorial.com\/wp-json\/wp\/v2\/docs\/6097","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.completecsharptutorial.com\/wp-json\/wp\/v2\/docs"}],"about":[{"href":"https:\/\/www.completecsharptutorial.com\/wp-json\/wp\/v2\/types\/docs"}],"author":[{"embeddable":true,"href":"https:\/\/www.completecsharptutorial.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.completecsharptutorial.com\/wp-json\/wp\/v2\/comments?post=6097"}],"version-history":[{"count":7,"href":"https:\/\/www.completecsharptutorial.com\/wp-json\/wp\/v2\/docs\/6097\/revisions"}],"predecessor-version":[{"id":8010,"href":"https:\/\/www.completecsharptutorial.com\/wp-json\/wp\/v2\/docs\/6097\/revisions\/8010"}],"up":[{"embeddable":true,"href":"https:\/\/www.completecsharptutorial.com\/wp-json\/wp\/v2\/docs\/6087"}],"wp:attachment":[{"href":"https:\/\/www.completecsharptutorial.com\/wp-json\/wp\/v2\/media?parent=6097"}],"wp:term":[{"taxonomy":"doc_tag","embeddable":true,"href":"https:\/\/www.completecsharptutorial.com\/wp-json\/wp\/v2\/doc_tag?post=6097"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}