{"id":476236,"date":"2023-08-09T07:26:52","date_gmt":"2023-08-09T07:26:52","guid":{"rendered":""},"modified":"2023-09-05T11:12:18","modified_gmt":"2023-09-05T11:12:18","slug":"class","status":"publish","type":"wiki","link":"https:\/\/oneproxy.pro\/jp\/wiki\/class\/","title":{"rendered":"\u30af\u30e9\u30b9"},"content":{"rendered":"<p>\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u6307\u5411\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0 (OOP) \u306e\u5206\u91ce\u306b\u304a\u3051\u308b\u30af\u30e9\u30b9\u306f\u3001\u30bd\u30d5\u30c8\u30a6\u30a7\u30a2\u306e\u8a2d\u8a08\u3068\u958b\u767a\u306b\u4e0d\u53ef\u6b20\u306a\u8981\u7d20\u3067\u3059\u3002\u30af\u30e9\u30b9\u306f\u3001\u30aa\u30d6\u30b8\u30a7\u30af\u30c8 (\u7279\u5b9a\u306e\u30c7\u30fc\u30bf\u69cb\u9020) \u3092\u4f5c\u6210\u3057\u3001\u72b6\u614b\u306e\u521d\u671f\u5024 (\u30e1\u30f3\u30d0\u30fc\u5909\u6570\u307e\u305f\u306f\u5c5e\u6027) \u3092\u63d0\u4f9b\u3057\u3001\u52d5\u4f5c (\u30e1\u30f3\u30d0\u30fc\u95a2\u6570\u307e\u305f\u306f\u30e1\u30bd\u30c3\u30c9) \u3092\u5b9f\u88c5\u3059\u308b\u305f\u3081\u306e\u9752\u5199\u771f\u3068\u3057\u3066\u6a5f\u80fd\u3057\u307e\u3059\u3002<\/p>\n<h2>\u968e\u7d1a\u306e\u8d77\u6e90\u3068\u6b74\u53f2<\/h2>\n<p>\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u306b\u304a\u3051\u308b\u30af\u30e9\u30b9\u306e\u6982\u5ff5\u306f\u3001\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u6307\u5411\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0 (OOP) \u306e\u5c0e\u5165\u306b\u7aef\u3092\u767a\u3057\u3066\u3044\u307e\u3059\u3002\u30af\u30e9\u30b9\u306e\u6982\u5ff5\u306f\u30011965 \u5e74\u9803\u306b Ole-Johan Dahl \u3068 Kristen Nygaard \u306b\u3088\u3063\u3066\u8a2d\u8a08\u3055\u308c\u305f\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u8a00\u8a9e Simula 67 \u3067\u521d\u3081\u3066\u958b\u767a\u3055\u308c\u307e\u3057\u305f\u3002\u3053\u306e\u30af\u30e9\u30b9\u306e\u6982\u5ff5\u306f\u3001\u5f8c\u306b Smalltalk\u3001C++\u3001Java \u306a\u3069\u306e\u4ed6\u306e\u5f71\u97ff\u529b\u306e\u3042\u308b\u8a00\u8a9e\u306b\u7d71\u5408\u3055\u308c\u3001\u73fe\u4ee3\u306e\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0 \u30d1\u30e9\u30c0\u30a4\u30e0\u306e\u5168\u4f53\u50cf\u3092\u5f62\u6210\u3057\u307e\u3057\u305f\u3002<\/p>\n<h2>\u30af\u30e9\u30b9\u3092\u8a73\u3057\u304f\u898b\u308b<\/h2>\n<p>\u30af\u30e9\u30b9\u306f\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u6307\u5411\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u306e\u57fa\u672c\u3067\u3059\u3002\u30af\u30e9\u30b9\u306f\u5909\u6570\u3068\u95a2\u6570\u3092 1 \u3064\u306e\u30a8\u30f3\u30c6\u30a3\u30c6\u30a3\u306b\u307e\u3068\u3081\u307e\u3059\u3002\u30af\u30e9\u30b9\u306f\u30c7\u30fc\u30bf\u306e\u30bf\u30a4\u30d7\u3068\u3001\u305d\u306e\u30c7\u30fc\u30bf\u306b\u5bfe\u3057\u3066\u5b9f\u884c\u3067\u304d\u308b\u64cd\u4f5c\u3092\u5b9a\u7fa9\u3057\u307e\u3059\u3002\u30af\u30e9\u30b9\u306f\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306e\u30c7\u30fc\u30bf\u3092\u30ab\u30d7\u30bb\u30eb\u5316\u3057\u307e\u3059\u3002\u30af\u30e9\u30b9\u3092\u4f7f\u7528\u3059\u308b\u3068\u3001\u958b\u767a\u8005\u306f\u30e2\u30c7\u30eb\u5316\u3057\u3066\u3044\u308b\u6982\u5ff5\u306b\u3055\u3089\u306b\u8fd1\u3044\u65b0\u3057\u3044\u30bf\u30a4\u30d7\u3092\u4f5c\u6210\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u30bd\u30d5\u30c8\u30a6\u30a7\u30a2 \u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u57fa\u672c\u7684\u306a\u69cb\u6210\u8981\u7d20\u3068\u3057\u3066\u3001\u30af\u30e9\u30b9\u306b\u306f 2 \u3064\u306e\u4e3b\u8981\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u304c\u542b\u307e\u308c\u307e\u3059\u3002<\/p>\n<ol>\n<li><strong>\u7530\u7551<\/strong>: \u3053\u308c\u3089\u306f\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306e\u72b6\u614b\u3092\u4fdd\u6301\u3059\u308b\u5909\u6570\u3067\u3059\u3002<\/li>\n<li><strong>\u30e1\u30bd\u30c3\u30c9<\/strong>: \u3053\u308c\u3089\u306f\u3001\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u304c\u4f55\u304c\u3067\u304d\u308b\u304b\u3092\u5b9a\u7fa9\u3059\u308b\u95a2\u6570\u3067\u3059\u3002<\/li>\n<\/ol>\n<p>\u5b9f\u7528\u7684\u306a\u610f\u5473\u3067\u306f\u3001\u30af\u30e9\u30b9\u3092\u4f7f\u7528\u3059\u308b\u3068\u3001\u30c7\u30fc\u30bf\u3068\u30e1\u30bd\u30c3\u30c9\u306e\u30ab\u30d7\u30bb\u30eb\u5316\u3001\u4ed6\u306e\u30af\u30e9\u30b9\u304b\u3089\u306e\u7279\u6027\u306e\u7d99\u627f\u3001\u30af\u30e9\u30b9\u306e\u5177\u4f53\u7684\u306a\u8868\u73fe\u3067\u3042\u308b\u30aa\u30d6\u30b8\u30a7\u30af\u30c8 \u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u306e\u4f5c\u6210\u304c\u53ef\u80fd\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<h2>\u968e\u7d1a\u306e\u5185\u90e8\u69cb\u9020\u3068\u904b\u55b6<\/h2>\n<p>\u30af\u30e9\u30b9\u306e\u5185\u90e8\u69cb\u9020\u306b\u306f\u3001\u901a\u5e38\u3001\u30d5\u30a3\u30fc\u30eb\u30c9 (\u30c7\u30fc\u30bf\u8981\u7d20) \u3068\u30e1\u30bd\u30c3\u30c9\u306e\u7d44\u307f\u5408\u308f\u305b\u304c\u542b\u307e\u308c\u307e\u3059\u3002\u30d5\u30a3\u30fc\u30eb\u30c9\u306f\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306e\u72b6\u614b\u3092\u4fdd\u6301\u3057\u3001\u30e1\u30bd\u30c3\u30c9\u306f\u5916\u90e8\u3068\u306e\u3084\u308a\u53d6\u308a\u3092\u5b9a\u7fa9\u3057\u307e\u3059\u3002\u4ee5\u4e0b\u306f\u3001Java \u306e\u30af\u30e9\u30b9\u306e\u7c21\u5358\u306a\u69cb\u9020\u3067\u3059\u3002<\/p>\n<pre><div class=\"bg-black rounded-md mb-4\"><div class=\"flex items-center relative text-gray-200 bg-gray-800 px-4 py-2 text-xs font-sans justify-between rounded-t-md\"><span>\u30b8\u30e3\u30ef<\/span><button class=\"flex ml-auto gap-2\"><svg stroke=\"currentColor\" fill=\"none\" stroke-width=\"2\" viewbox=\"0 0 24 24\" stroke-linecap=\"round\" stroke-linejoin=\"round\" class=\"h-4 w-4\" height=\"1em\" width=\"1em\" ><path d=\"M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2\"><\/path><rect x=\"8\" y=\"2\" width=\"8\" height=\"4\" rx=\"1\" ry=\"1\"><\/rect><\/svg>\u30b3\u30fc\u30c9\u3092\u30b3\u30d4\u30fc\u3059\u308b<\/button><\/div><div class=\"p-4 overflow-y-auto\"><code class=\"!whitespace-pre hljs language-java\" data-no-translation=\"\"><span class=\"hljs-keyword\">public<\/span> <span class=\"hljs-keyword\">class<\/span> <span class=\"hljs-title class_\">MyClass<\/span> {\n   <span class=\"hljs-comment\">\/\/ field (class variable)<\/span>\n   <span class=\"hljs-type\">int<\/span> myVariable;\n\n   <span class=\"hljs-comment\">\/\/ method<\/span>\n   <span class=\"hljs-keyword\">public<\/span> <span class=\"hljs-keyword\">void<\/span> <span class=\"hljs-title function_\">myMethod<\/span><span class=\"hljs-params\">()<\/span> {\n      <span class=\"hljs-comment\">\/\/ code<\/span>\n   }\n}\n<\/code><\/div><\/div><\/pre>\n<p>\u3053\u306e\u4f8b\u3067\u306f\u3001 <code data-no-translation=\"\">myVariable<\/code> \u30c7\u30fc\u30bf\u3092\u4fdd\u6301\u3067\u304d\u308b\u30d5\u30a3\u30fc\u30eb\u30c9\u3067\u3042\u308a\u3001 <code data-no-translation=\"\">myMethod()<\/code> \u7279\u5b9a\u306e\u64cd\u4f5c\u3092\u5b9f\u884c\u3059\u308b\u30e1\u30bd\u30c3\u30c9\u3067\u3059\u3002\u30af\u30e9\u30b9 <code data-no-translation=\"\">MyClass<\/code> \u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3068\u3057\u3066\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u5316\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u3001\u305d\u308c\u305e\u308c\u304c\u72ec\u81ea\u306e <code data-no-translation=\"\">myVariable<\/code> \u5206\u91ce\u3002<\/p>\n<h2>\u30af\u30e9\u30b9\u306e\u4e3b\u306a\u7279\u5fb4<\/h2>\n<p>\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u6307\u5411\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u306b\u304a\u3051\u308b\u30af\u30e9\u30b9\u306e\u4e3b\u306a\u6a5f\u80fd\u306f\u6b21\u306e\u3068\u304a\u308a\u3067\u3059\u3002<\/p>\n<ol>\n<li><strong>\u30ab\u30d7\u30bb\u30eb\u5316<\/strong>: \u30af\u30e9\u30b9\u306e\u5b9f\u88c5\u306f\u30ab\u30d7\u30bb\u30eb\u5316\u3055\u308c\u3066\u304a\u308a\u3001\u4ed6\u306e\u30af\u30e9\u30b9\u304b\u3089\u306f\u96a0\u3055\u308c\u3066\u3044\u307e\u3059\u3002\u30e1\u30bd\u30c3\u30c9\u3092\u901a\u3058\u3066\u306e\u307f\u30a2\u30af\u30bb\u30b9\u3067\u304d\u307e\u3059\u3002<\/li>\n<li><strong>\u62bd\u8c61\u5316<\/strong>\u30af\u30e9\u30b9\u306f\u3001\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306b\u5fc5\u8981\u306a\u95a2\u9023\u30c7\u30fc\u30bf\u3068\u30e1\u30bd\u30c3\u30c9\u3092\u30ab\u30d7\u30bb\u30eb\u5316\u3057\u3001\u30b7\u30f3\u30d7\u30eb\u306a\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30fc\u30b9\u3092\u63d0\u4f9b\u3057\u3001\u5b9f\u88c5\u306e\u8a73\u7d30\u3092\u96a0\u3057\u307e\u3059\u3002<\/li>\n<li><strong>\u7d99\u627f<\/strong>\u30af\u30e9\u30b9\u306f\u4ed6\u306e\u30af\u30e9\u30b9\u304b\u3089\u7279\u6027 (\u30d5\u30a3\u30fc\u30eb\u30c9\u3068\u30e1\u30bd\u30c3\u30c9) \u3092\u7d99\u627f\u3067\u304d\u307e\u3059\u3002<\/li>\n<li><strong>\u30dd\u30ea\u30e2\u30fc\u30d5\u30a3\u30ba\u30e0<\/strong>: \u30af\u30e9\u30b9\u306e\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306f\u30b9\u30fc\u30d1\u30fc\u30af\u30e9\u30b9\u306e\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306e\u3088\u3046\u306b\u6271\u3046\u3053\u3068\u304c\u3067\u304d\u308b\u305f\u3081\u3001\u30b3\u30fc\u30c7\u30a3\u30f3\u30b0\u306e\u67d4\u8edf\u6027\u304c\u5411\u4e0a\u3057\u307e\u3059\u3002<\/li>\n<\/ol>\n<h2>\u30af\u30e9\u30b9\u306e\u7a2e\u985e<\/h2>\n<p>\u30af\u30e9\u30b9\u306f\u3001\u305d\u306e\u7279\u6027\u3068\u52d5\u4f5c\u306b\u57fa\u3065\u3044\u3066\u3055\u307e\u3056\u307e\u306a\u30bf\u30a4\u30d7\u306b\u5206\u985e\u3067\u304d\u307e\u3059\u3002\u6b21\u306e\u8868\u306f\u3001\u3053\u308c\u3089\u306e\u30bf\u30a4\u30d7\u306e\u6982\u8981\u3092\u793a\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<table>\n<thead>\n<tr>\n<th>\u30af\u30e9\u30b9\u306e\u7a2e\u985e<\/th>\n<th>\u8aac\u660e<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>\u30b3\u30f3\u30af\u30ea\u30fc\u30c8\u30af\u30e9\u30b9<\/td>\n<td>\u30c7\u30d5\u30a9\u30eb\u30c8\u306e\u30bf\u30a4\u30d7\u306e\u30af\u30e9\u30b9\u306f\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u5316\u3067\u304d\u308b<\/td>\n<\/tr>\n<tr>\n<td>\u62bd\u8c61\u30af\u30e9\u30b9<\/td>\n<td>\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u5316\u3067\u304d\u306a\u3044\u304c\u3001\u57fa\u672c\u30af\u30e9\u30b9\u3068\u3057\u3066\u3088\u304f\u4f7f\u7528\u3055\u308c\u308b<\/td>\n<\/tr>\n<tr>\n<td>\u30cd\u30b9\u30c8\u3055\u308c\u305f\u30af\u30e9\u30b9<\/td>\n<td>\u5225\u306e\u30af\u30e9\u30b9\u5185\u3067\u5b9a\u7fa9\u3055\u308c\u305f\u30af\u30e9\u30b9<\/td>\n<\/tr>\n<tr>\n<td>\u533f\u540d\u30af\u30e9\u30b9<\/td>\n<td>\u540d\u524d\u306e\u306a\u3044\u30af\u30e9\u30b9\u3002\u901a\u5e38\u306fGUI\u30a4\u30d9\u30f3\u30c8\u51e6\u7406\u3067\u4f7f\u7528\u3055\u308c\u307e\u3059\u3002<\/td>\n<\/tr>\n<tr>\n<td>\u6700\u7d42\u30af\u30e9\u30b9<\/td>\n<td>\u30b5\u30d6\u30af\u30e9\u30b9\u5316\u3067\u304d\u306a\u3044\u30af\u30e9\u30b9<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h2>\u30af\u30e9\u30b9\u306e\u4f7f\u7528: \u554f\u984c\u3068\u89e3\u6c7a\u7b56<\/h2>\n<p>\u30af\u30e9\u30b9\u3092\u4f7f\u7528\u3059\u308b\u969b\u306e\u4e00\u822c\u7684\u306a\u554f\u984c\u306e 1 \u3064\u306f\u3001\u4e0d\u9069\u5207\u306a\u8a2d\u8a08\u3067\u3042\u308a\u3001\u30b3\u30fc\u30c9\u306e\u4fdd\u5b88\u3084\u5909\u66f4\u304c\u56f0\u96e3\u306b\u306a\u308b\u306a\u3069\u306e\u554f\u984c\u306b\u3064\u306a\u304c\u308a\u307e\u3059\u3002\u89e3\u6c7a\u7b56\u306f\u3001SOLID (\u5358\u4e00\u8cac\u4efb\u3001\u30aa\u30fc\u30d7\u30f3\u30af\u30ed\u30fc\u30ba\u3001\u30ea\u30b9\u30b3\u30d5\u7f6e\u63db\u3001\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30fc\u30b9\u5206\u96e2\u3001\u4f9d\u5b58\u6027\u53cd\u8ee2) \u306a\u3069\u306e\u8a2d\u8a08\u539f\u5247\u306b\u5f93\u3046\u3053\u3068\u3067\u3059\u3002<\/p>\n<p>\u30af\u30e9\u30b9\u304c\u5927\u304d\u3059\u304e\u305f\u308a\u8907\u96d1\u3059\u304e\u305f\u308a\u3059\u308b\u3068\u3001\u30d7\u30ed\u30b0\u30e9\u30e0\u306e\u7406\u89e3\u3084\u30c7\u30d0\u30c3\u30b0\u304c\u56f0\u96e3\u306b\u306a\u308b\u3068\u3044\u3046\u5225\u306e\u554f\u984c\u304c\u767a\u751f\u3057\u307e\u3059\u3002\u3053\u306e\u554f\u984c\u3092\u89e3\u6c7a\u3059\u308b\u306b\u306f\u3001\u30af\u30e9\u30b9\u3092\u3088\u308a\u5c0f\u3055\u304f\u7ba1\u7406\u3057\u3084\u3059\u3044\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u306b\u5206\u5272\u3059\u308b\u30ea\u30d5\u30a1\u30af\u30bf\u30ea\u30f3\u30b0\u3092\u884c\u3044\u307e\u3059\u3002<\/p>\n<h2>\u985e\u4f3c\u306e\u7528\u8a9e\u3068\u306e\u6bd4\u8f03<\/h2>\n<p>\u30af\u30e9\u30b9\u306f\u3001\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3001\u69cb\u9020\u4f53\u3001\u578b\u306a\u3069\u306e\u4ed6\u306e\u7528\u8a9e\u3068\u6df7\u540c\u3055\u308c\u308b\u3053\u3068\u304c\u3042\u308a\u307e\u3059\u3002\u4ee5\u4e0b\u306b\u7c21\u5358\u306a\u6bd4\u8f03\u3092\u793a\u3057\u307e\u3059\u3002<\/p>\n<table>\n<thead>\n<tr>\n<th>\u5b66\u671f<\/th>\n<th>\u8aac\u660e<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>\u7269\u4f53<\/td>\n<td>\u30af\u30e9\u30b9\u306e\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u3002\u30af\u30e9\u30b9\u304c\u8a2d\u8a08\u56f3\u306e\u3088\u3046\u306a\u3082\u306e\u3060\u3068\u3059\u308b\u3068\u3001\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306f\u305d\u306e\u8a2d\u8a08\u56f3\u304b\u3089\u5efa\u3066\u3089\u308c\u305f\u5bb6\u306e\u3088\u3046\u306a\u3082\u306e\u3067\u3059\u3002<\/td>\n<\/tr>\n<tr>\n<td>\u69cb\u9020<\/td>\n<td>\u30af\u30e9\u30b9\u306b\u4f3c\u3066\u3044\u307e\u3059\u304c\u3001\u901a\u5e38\u306f\u30e1\u30bd\u30c3\u30c9\u306a\u3069\u306eOOP\u6a5f\u80fd\u304c\u6b20\u3051\u3066\u3044\u307e\u3059\uff08\u8a00\u8a9e\u306b\u3088\u3063\u3066\u7570\u306a\u308a\u307e\u3059\uff09\u3002\u4e3b\u306b\u624b\u7d9a\u304d\u578b\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u3067\u4f7f\u7528\u3055\u308c\u307e\u3059\u3002<\/td>\n<\/tr>\n<tr>\n<td>\u30bf\u30a4\u30d7<\/td>\n<td>\u30af\u30e9\u30b9\u3001\u30d7\u30ea\u30df\u30c6\u30a3\u30d6\u3001\u914d\u5217\u3001\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30fc\u30b9\u3092\u542b\u3080\u3088\u308a\u5e83\u3044\u6982\u5ff5<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h2>\u6388\u696d\u306b\u95a2\u3059\u308b\u5c06\u6765\u5c55\u671b\u3068\u6280\u8853<\/h2>\n<p>\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u6307\u5411\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u306e\u57fa\u790e\u3067\u3042\u308b\u30af\u30e9\u30b9\u306e\u6982\u5ff5\u306f\u3001\u30bd\u30d5\u30c8\u30a6\u30a7\u30a2\u958b\u767a\u65b9\u6cd5\u8ad6\u306e\u9032\u6b69\u3068\u3068\u3082\u306b\u9032\u5316\u3057\u7d9a\u3051\u307e\u3059\u3002\u30e1\u30bf\u30af\u30e9\u30b9 (\u30af\u30e9\u30b9\u306e\u30af\u30e9\u30b9)\u3001\u30b8\u30a7\u30cd\u30ea\u30c3\u30af (\u30d1\u30e9\u30e1\u30fc\u30bf\u30fc\u5316\u3055\u308c\u305f\u30af\u30e9\u30b9)\u3001\u30bd\u30d5\u30c8\u30a6\u30a7\u30a2 \u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8 (\u30af\u30e9\u30b9\u306e\u30b0\u30eb\u30fc\u30d7) \u306a\u3069\u306e\u6982\u5ff5\u306f\u3001\u3055\u3089\u306b\u7814\u7a76\u3055\u308c\u3001\u958b\u767a\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n<h2>\u30d7\u30ed\u30ad\u30b7\u30b5\u30fc\u30d0\u30fc\u3068\u30af\u30e9\u30b9<\/h2>\n<p>OneProxy \u306b\u3088\u3063\u3066\u63d0\u4f9b\u3055\u308c\u308b\u3088\u3046\u306a\u30d7\u30ed\u30ad\u30b7 \u30b5\u30fc\u30d0\u30fc\u306e\u30b3\u30f3\u30c6\u30ad\u30b9\u30c8\u3067\u306f\u3001\u30af\u30e9\u30b9\u306f\u3053\u308c\u3089\u306e\u30b7\u30b9\u30c6\u30e0\u306e\u958b\u767a\u3068\u7ba1\u7406\u306b\u304a\u3044\u3066\u91cd\u8981\u306a\u5f79\u5272\u3092\u679c\u305f\u3059\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u305f\u3068\u3048\u3070\u3001\u300cProxyServer\u300d\u30af\u30e9\u30b9\u306f\u3001\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u8981\u6c42\u306e\u51e6\u7406\u3001\u8981\u6c42\u306e\u8ee2\u9001\u3001\u30b3\u30f3\u30c6\u30f3\u30c4\u306e\u30ad\u30e3\u30c3\u30b7\u30e5\u3092\u884c\u3046\u30e1\u30bd\u30c3\u30c9\u3092\u5b9a\u7fa9\u3067\u304d\u307e\u3059\u3002\u30af\u30e9\u30b9\u3092\u7406\u89e3\u3057\u3066\u9069\u5207\u306b\u5b9f\u88c5\u3059\u308b\u3068\u3001\u30d7\u30ed\u30ad\u30b7 \u30b5\u30fc\u30d0\u30fc \u30b7\u30b9\u30c6\u30e0\u306e\u52b9\u7387\u3001\u4fdd\u5b88\u6027\u3001\u304a\u3088\u3073\u30b9\u30b1\u30fc\u30e9\u30d3\u30ea\u30c6\u30a3\u3092\u5411\u4e0a\u3055\u305b\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<h2>\u95a2\u9023\u30ea\u30f3\u30af<\/h2>\n<ol>\n<li><a href=\"https:\/\/docs.oracle.com\/javase\/tutorial\/java\/concepts\/class.html\" target=\"_new\" rel=\"noopener nofollow\">Oracle Java\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8 \u2013 \u30af\u30e9\u30b9<\/a><\/li>\n<li><a href=\"https:\/\/developer.mozilla.org\/en-US\/docs\/Web\/JavaScript\/Reference\/Classes\" target=\"_new\" rel=\"noopener nofollow\">Mozilla \u958b\u767a\u8005\u30cd\u30c3\u30c8\u30ef\u30fc\u30af \u2013 \u30af\u30e9\u30b9<\/a><\/li>\n<li><a href=\"https:\/\/en.wikipedia.org\/wiki\/Class_(computer_programming)\" target=\"_new\" rel=\"noopener nofollow\">Wikipedia \u2013 \u30af\u30e9\u30b9 (\u30b3\u30f3\u30d4\u30e5\u30fc\u30bf\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0)<\/a><\/li>\n<\/ol>","protected":false},"featured_media":0,"menu_order":0,"template":"","meta":{"_acf_changed":false,"content-type":"","inline_featured_image":false,"footnotes":""},"class_list":["post-476236","wiki","type-wiki","status-publish","hentry"],"acf":{"faq_title":"Frequently Asked Questions about <mark>Class in Computer Science and Proxy Servers<\/mark>","faq_items":[{"question":"What is a class in computer science?","answer":"<p>In the field of object-oriented programming (OOP), a class is a blueprint for creating objects. It provides initial values for state (member variables or attributes) and implementations of behavior (member functions or methods).<\/p>"},{"question":"What is the origin and history of the class concept in programming?","answer":"<p>The concept of a class in programming originated with the introduction of object-oriented programming (OOP). The idea of classes was first developed in Simula 67, a programming language designed around 1965 by Ole-Johan Dahl and Kristen Nygaard. This class concept was later integrated into other influential languages like Smalltalk, C++, and Java.<\/p>"},{"question":"How does a class work in programming?","answer":"<p>A class generally contains a combination of fields (data elements) and methods. The fields hold the state of an object, while the methods define its interaction with the outside world.<\/p>"},{"question":"What are the key features of classes in programming?","answer":"<p>The key features of classes in object-oriented programming are encapsulation, abstraction, inheritance, and polymorphism.<\/p>"},{"question":"What types of classes exist in programming?","answer":"<p>Classes can be categorized into different types based on their characteristics and behaviors. Some types of classes include Concrete Class, Abstract Class, Nested Class, Anonymous Class, and Final Class.<\/p>"},{"question":"What problems might arise when using classes and how can they be solved?","answer":"<p>One common problem when using classes is improper design, leading to issues such as difficulty in code maintenance and modification. This can be solved by following design principles like SOLID. Another problem arises when classes are excessively large or complex, which can be solved by refactoring, breaking the class down into smaller, more manageable components.<\/p>"},{"question":"How can classes be used in the context of proxy servers?","answer":"<p>In the context of proxy servers, like those provided by OneProxy, classes can play a critical role in developing and managing these systems. A 'ProxyServer' class could define methods for handling client requests, forwarding requests, and caching content.<\/p>"},{"question":"What are some future perspectives and technologies related to classes?","answer":"<p>As a cornerstone of object-oriented programming, the concept of a class will continue to evolve with the progression of software development methodologies. Concepts like metaclasses (a class of a class), generics (parameterized classes), and software components (group of classes) are being researched and developed further.<\/p>"}]},"_links":{"self":[{"href":"https:\/\/oneproxy.pro\/jp\/wp-json\/wp\/v2\/wiki\/476236","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/oneproxy.pro\/jp\/wp-json\/wp\/v2\/wiki"}],"about":[{"href":"https:\/\/oneproxy.pro\/jp\/wp-json\/wp\/v2\/types\/wiki"}],"version-history":[{"count":0,"href":"https:\/\/oneproxy.pro\/jp\/wp-json\/wp\/v2\/wiki\/476236\/revisions"}],"wp:attachment":[{"href":"https:\/\/oneproxy.pro\/jp\/wp-json\/wp\/v2\/media?parent=476236"}],"curies":[{"name":"\u3046\u30fc\u3093","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}