{"id":88649,"date":"2024-12-17T14:21:41","date_gmt":"2024-12-17T10:51:41","guid":{"rendered":"https:\/\/nabfollower.com\/blog\/today-task-java-program-g2k\/"},"modified":"2024-12-17T14:21:41","modified_gmt":"2024-12-17T10:51:41","slug":"today-task-java-program-g2k","status":"publish","type":"post","link":"https:\/\/nabfollower.com\/blog\/today-task-java-program-g2k\/","title":{"rendered":"\u0628\u0631\u0646\u0627\u0645\u0647 \u0627\u0645\u0631\u0648\u0632 \u0648\u0638\u06cc\u0641\u0647 \u062c\u0627\u0648\u0627 &#8211; \u0627\u0646\u062c\u0645\u0646 DEV"},"content":{"rendered":"<p>Summarize this content to 400 words in Persian Lang<br \/>\n              \u0648\u0638\u06cc\u0641\u0647: <\/p>\n<p>\u06a9\u0644\u0627\u0633\u06cc \u0628\u0647 \u0646\u0627\u0645 PlayGround \u0627\u06cc\u062c\u0627\u062f \u06a9\u0646\u06cc\u062f<br \/>\n\u0645\u062a\u063a\u06cc\u0631\u0647\u0627\u06cc \u063a\u06cc\u0631 \u0627\u0633\u062a\u0627\u062a\u06cc\u06a9 \u0631\u0627 \u0645\u0627\u0646\u0646\u062f \u0632\u06cc\u0631 \u0627\u06cc\u062c\u0627\u062f \u06a9\u0646\u06cc\u062f. \u0627\u0645\u062a\u06cc\u0627\u0632 int\u060c \u062a\u0648\u067e\u060c \u062c\u0644\u0628. \u0646\u0627\u0645_\u0646\u0648\u0627\u0632\u0646\u062f\u0647 \u0631\u0634\u062a\u0647<br \/>\n\u0631\u0648\u0634 \u0627\u0635\u0644\u06cc \u0627\u06cc\u062c\u0627\u062f \u06a9\u0646\u06cc\u062f<br \/>\nInside main \u0645\u062a\u062f\u060c \u062f\u0648 \u0646\u0645\u0648\u0646\u0647 \u0645\u0627\u0646\u0646\u062f \u0632\u06cc\u0631 \u0627\u06cc\u062c\u0627\u062f \u06a9\u0646\u06cc\u062f. PlayGround player1 = \u062c\u062f\u06cc\u062f PlayGround(&#8220;dhoni&#8221;, 100, 3); PlayGround player2 = \u062c\u062f\u06cc\u062f PlayGround(&#8220;jadeja&#8221;, 56, 2, 30);<br \/>\n\u0633\u0627\u0632\u0646\u062f\u0647 \u0647\u0627\u06cc \u0645\u0646\u0627\u0633\u0628 \u0628\u0631\u0627\u06cc \u0645\u062f\u06cc\u0631\u06cc\u062a \u0627\u0634\u06cc\u0627\u0621 \u0628\u0627\u0644\u0627 \u0627\u06cc\u062c\u0627\u062f \u06a9\u0646\u06cc\u062f.<br \/>\n\u0628\u0627 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0627\u0632 \u0634\u06cc player1\u060c \u0645\u062a\u062f batting() \u0631\u0627 \u0641\u0631\u0627\u062e\u0648\u0627\u0646\u06cc \u06a9\u0646\u06cc\u062f. \u0686\u0627\u067e &#8211; \u0627\u0645\u062a\u06cc\u0627\u0632\u060c \u0646\u0627\u0645 \u0628\u0627\u0632\u06cc\u06a9\u0646.<br \/>\n\u0628\u0627 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0627\u0632 \u0634\u06cc player2\u060c \u0645\u062a\u062f allrounder() \u0631\u0627 \u0641\u0631\u0627\u062e\u0648\u0627\u0646\u06cc \u06a9\u0646\u06cc\u062f. \u0686\u0627\u067e &#8211; \u0627\u0645\u062a\u06cc\u0627\u0632\u060c \u0628\u0627\u0632\u06cc\u06a9\u0646_\u0646\u0627\u0645\u060c \u062a\u0648\u067e\u060c \u06af\u06cc\u0631<\/p>\n<p>public class PlayGround<br \/>\n{<br \/>\nint score,balls,catches;<br \/>\nString Player_name;<br \/>\npublic PlayGround(String Player_name,int score,int catches)<br \/>\n{<br \/>\nthis.score=score;<br \/>\nthis.catches=catches;<br \/>\nthis.Player_name=Player_name;<br \/>\n}<br \/>\npublic PlayGround(String Player_name,int score,int catches,int balls)<br \/>\n{<br \/>\nthis.score=score;<br \/>\nthis.catches=catches;<br \/>\nthis.balls=balls;<br \/>\nthis.Player_name=Player_name;<br \/>\n}<\/p>\n<p>public static void main(String[] args)<br \/>\n{<br \/>\nPlayGround Player1=new PlayGround(&#8220;dhoni&#8221;,100,3);<br \/>\nPlayGround Player2=new PlayGround(&#8220;jadeja&#8221;,56,2,30);<br \/>\nPlayer1.batting();<br \/>\nPlayer2.allrounder();<br \/>\n}<br \/>\npublic void batting()<br \/>\n{<br \/>\nSystem.out.println(Player_name+&#8221; &#8220;+score+&#8221; &#8220;+catches);<br \/>\n}<br \/>\npublic void allrounder()<br \/>\n{<br \/>\nSystem.out.println(Player_name +&#8221; &#8220;+score+&#8221; &#8220;+catches+&#8221; &#8220;+balls);<br \/>\n}<br \/>\n}<\/p>\n<p>    \u0648\u0627\u0631\u062f \u062d\u0627\u0644\u062a \u062a\u0645\u0627\u0645 \u0635\u0641\u062d\u0647 \u0634\u0648\u06cc\u062f<\/p>\n<p>    \u0627\u0632 \u062d\u0627\u0644\u062a \u062a\u0645\u0627\u0645 \u0635\u0641\u062d\u0647 \u062e\u0627\u0631\u062c \u0634\u0648\u06cc\u062f<\/p>\n<p>\u062e\u0631\u0648\u062c\u06cc:<\/p>\n<div data-article-id=\"2160774\" id=\"article-body\">\n<p>\u0648\u0638\u06cc\u0641\u0647: <\/p>\n<ol>\n<li>\u06a9\u0644\u0627\u0633\u06cc \u0628\u0647 \u0646\u0627\u0645 PlayGround \u0627\u06cc\u062c\u0627\u062f \u06a9\u0646\u06cc\u062f<\/li>\n<li>\u0645\u062a\u063a\u06cc\u0631\u0647\u0627\u06cc \u063a\u06cc\u0631 \u0627\u0633\u062a\u0627\u062a\u06cc\u06a9 \u0631\u0627 \u0645\u0627\u0646\u0646\u062f \u0632\u06cc\u0631 \u0627\u06cc\u062c\u0627\u062f \u06a9\u0646\u06cc\u062f. \u0627\u0645\u062a\u06cc\u0627\u0632 int\u060c \u062a\u0648\u067e\u060c \u062c\u0644\u0628. \u0646\u0627\u0645_\u0646\u0648\u0627\u0632\u0646\u062f\u0647 \u0631\u0634\u062a\u0647 <\/li>\n<li>\u0631\u0648\u0634 \u0627\u0635\u0644\u06cc \u0627\u06cc\u062c\u0627\u062f \u06a9\u0646\u06cc\u062f <\/li>\n<li>Inside main \u0645\u062a\u062f\u060c \u062f\u0648 \u0646\u0645\u0648\u0646\u0647 \u0645\u0627\u0646\u0646\u062f \u0632\u06cc\u0631 \u0627\u06cc\u062c\u0627\u062f \u06a9\u0646\u06cc\u062f. PlayGround player1 = \u062c\u062f\u06cc\u062f PlayGround(&#8220;dhoni&#8221;, 100, 3); PlayGround player2 = \u062c\u062f\u06cc\u062f PlayGround(&#8220;jadeja&#8221;, 56, 2, 30); <\/li>\n<li>\u0633\u0627\u0632\u0646\u062f\u0647 \u0647\u0627\u06cc \u0645\u0646\u0627\u0633\u0628 \u0628\u0631\u0627\u06cc \u0645\u062f\u06cc\u0631\u06cc\u062a \u0627\u0634\u06cc\u0627\u0621 \u0628\u0627\u0644\u0627 \u0627\u06cc\u062c\u0627\u062f \u06a9\u0646\u06cc\u062f. <\/li>\n<li>\u0628\u0627 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0627\u0632 \u0634\u06cc player1\u060c \u0645\u062a\u062f batting() \u0631\u0627 \u0641\u0631\u0627\u062e\u0648\u0627\u0646\u06cc \u06a9\u0646\u06cc\u062f. \u0686\u0627\u067e &#8211; \u0627\u0645\u062a\u06cc\u0627\u0632\u060c \u0646\u0627\u0645 \u0628\u0627\u0632\u06cc\u06a9\u0646. <\/li>\n<li>\u0628\u0627 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0627\u0632 \u0634\u06cc player2\u060c \u0645\u062a\u062f allrounder() \u0631\u0627 \u0641\u0631\u0627\u062e\u0648\u0627\u0646\u06cc \u06a9\u0646\u06cc\u062f. \u0686\u0627\u067e &#8211; \u0627\u0645\u062a\u06cc\u0627\u0632\u060c \u0628\u0627\u0632\u06cc\u06a9\u0646_\u0646\u0627\u0645\u060c \u062a\u0648\u067e\u060c \u06af\u06cc\u0631\n<\/li>\n<\/ol>\n<div class=\"highlight js-code-highlight\">\n<pre class=\"highlight plaintext\"><code>public class PlayGround\n{\nint score,balls,catches;\nString Player_name;\npublic PlayGround(String Player_name,int score,int catches)\n{\nthis.score=score;\nthis.catches=catches;\nthis.Player_name=Player_name;\n}\npublic PlayGround(String Player_name,int score,int catches,int balls)\n{\nthis.score=score;\nthis.catches=catches;\nthis.balls=balls;\nthis.Player_name=Player_name;\n}\n\n\npublic static void main(String[] args)\n{\nPlayGround Player1=new PlayGround(\"dhoni\",100,3);\nPlayGround Player2=new PlayGround(\"jadeja\",56,2,30);\nPlayer1.batting();\nPlayer2.allrounder();\n}\npublic void batting()\n{\nSystem.out.println(Player_name+\" \"+score+\" \"+catches);\n}\npublic void allrounder()\n{\nSystem.out.println(Player_name +\" \"+score+\" \"+catches+\" \"+balls);\n}\n}\n<\/code><\/pre>\n<div class=\"highlight__panel js-actions-panel\">\n<div class=\"highlight__panel-action js-fullscreen-code-action\">\n    <svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"20px\" height=\"20px\" viewbox=\"0 0 24 24\" class=\"highlight-action crayons-icon highlight-action--fullscreen-on\"><title>\u0648\u0627\u0631\u062f \u062d\u0627\u0644\u062a \u062a\u0645\u0627\u0645 \u0635\u0641\u062d\u0647 \u0634\u0648\u06cc\u062f<\/title>\n    <path d=\"M16 3h6v6h-2V5h-4V3zM2 3h6v2H4v4H2V3zm18 16v-4h2v6h-6v-2h4zM4 19h4v2H2v-6h2v4z\"\/>\n<\/svg><\/p>\n<p>    <svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"20px\" height=\"20px\" viewbox=\"0 0 24 24\" class=\"highlight-action crayons-icon highlight-action--fullscreen-off\"><title>\u0627\u0632 \u062d\u0627\u0644\u062a \u062a\u0645\u0627\u0645 \u0635\u0641\u062d\u0647 \u062e\u0627\u0631\u062c \u0634\u0648\u06cc\u062f<\/title>\n    <path d=\"M18 7h4v2h-6V3h2v4zM8 9H2V7h4V3h2v6zm10 8v4h-2v-6h6v2h-4zM8 15v6H6v-4H2v-2h6z\"\/>\n<\/svg><\/p>\n<\/div>\n<\/div>\n<\/div>\n<p>\u062e\u0631\u0648\u062c\u06cc:<\/p>\n<p><\/p>\n<\/p><\/div>\n","protected":false},"excerpt":{"rendered":"<p>Summarize this content to 400 words in Persian Lang \u0648\u0638\u06cc\u0641\u0647: \u06a9\u0644\u0627\u0633\u06cc \u0628\u0647 \u0646\u0627\u0645 PlayGround \u0627\u06cc\u062c\u0627\u062f \u06a9\u0646\u06cc\u062f \u0645\u062a\u063a\u06cc\u0631\u0647\u0627\u06cc \u063a\u06cc\u0631 \u0627\u0633\u062a\u0627\u062a\u06cc\u06a9 \u0631\u0627 \u0645\u0627\u0646\u0646\u062f \u0632\u06cc\u0631 \u0627\u06cc\u062c\u0627\u062f \u06a9\u0646\u06cc\u062f. \u0627\u0645\u062a\u06cc\u0627\u0632 int\u060c \u062a\u0648\u067e\u060c \u062c\u0644\u0628. \u0646\u0627\u0645_\u0646\u0648\u0627\u0632\u0646\u062f\u0647 \u0631\u0634\u062a\u0647 \u0631\u0648\u0634 \u0627\u0635\u0644\u06cc \u0627\u06cc\u062c\u0627\u062f \u06a9\u0646\u06cc\u062f Inside main \u0645\u062a\u062f\u060c \u062f\u0648 \u0646\u0645\u0648\u0646\u0647 \u0645\u0627\u0646\u0646\u062f \u0632\u06cc\u0631 \u0627\u06cc\u062c\u0627\u062f \u06a9\u0646\u06cc\u062f. PlayGround player1 = \u062c\u062f\u06cc\u062f PlayGround(&#8220;dhoni&#8221;, 100, 3); PlayGround player2 = \u062c\u062f\u06cc\u062f PlayGround(&#8220;jadeja&#8221;, &hellip;<\/p>\n","protected":false},"author":2,"featured_media":88650,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"fifu_image_url":"","fifu_image_alt":"","footnotes":""},"categories":[339],"tags":[],"class_list":["post-88649","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-dev"],"_links":{"self":[{"href":"https:\/\/nabfollower.com\/blog\/wp-json\/wp\/v2\/posts\/88649","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/nabfollower.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/nabfollower.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/nabfollower.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/nabfollower.com\/blog\/wp-json\/wp\/v2\/comments?post=88649"}],"version-history":[{"count":0,"href":"https:\/\/nabfollower.com\/blog\/wp-json\/wp\/v2\/posts\/88649\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/nabfollower.com\/blog\/wp-json\/wp\/v2\/media\/88650"}],"wp:attachment":[{"href":"https:\/\/nabfollower.com\/blog\/wp-json\/wp\/v2\/media?parent=88649"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/nabfollower.com\/blog\/wp-json\/wp\/v2\/categories?post=88649"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/nabfollower.com\/blog\/wp-json\/wp\/v2\/tags?post=88649"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}