Skip to content

Commit

Permalink
open localization: commit translated files
Browse files Browse the repository at this point in the history
  • Loading branch information
OpenLocalizationService committed Aug 14, 2017
1 parent 4a1bd74 commit fe000f3
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 13 deletions.
8 changes: 4 additions & 4 deletions docs/csharp/getting-started/getting-started-with-csharp.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,18 +30,18 @@ translation.priority.mt:
- pt-br
- tr-tr
ms.translationtype: HT
ms.sourcegitcommit: 306c608dc7f97594ef6f72ae0f5aaba596c936e1
ms.openlocfilehash: 14022b0272d5ad356c76bf0153f6ea5dfda91994
ms.sourcegitcommit: 3155295489e1188640dae5aa5bf9fdceb7480ed6
ms.openlocfilehash: f88dc299bdc503ae83740e4c1259aa1896481760
ms.contentlocale: ja-jp
ms.lasthandoff: 07/28/2017
ms.lasthandoff: 08/05/2017

---
# <a name="getting-started-with-c"></a>C# の概要
以下のトピックでは、C# を使用したアプリケーション開発を始めるのに役立つ情報を紹介します。 また、Visual Studio に組み込まれているさまざまな新機能や、C# 言語についても説明します。

## <a name="in-this-section"></a>このセクションの内容
[C# 言語と .NET Framework の概要](../../csharp/getting-started/introduction-to-the-csharp-language-and-the-net-framework.md)
C# 言語および .NET プラットフォームの概要を示します
C# 言語および .NET の概要を示します

[Visual C# プログラマのための追加リソース](../../csharp/getting-started/additional-resources.md)
一般的な問題の解決に役立つ Web サイトおよびニュースグループへのリンクを示します。
Expand Down
15 changes: 6 additions & 9 deletions docs/csharp/tutorials/inheritance.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,17 +12,14 @@ ms.technology: .net-core-technologies
ms.devlang: dotnet
ms.assetid: aeb68c74-0ea0-406f-9fbe-2ce02d47ef31
ms.translationtype: HT
ms.sourcegitcommit: 306c608dc7f97594ef6f72ae0f5aaba596c936e1
ms.openlocfilehash: c3004d84e9a87fcf86737b18fe58bb200eefd33b
ms.sourcegitcommit: 7912d46736fd9f9d9d2ee41c416d3dfc157cfe12
ms.openlocfilehash: 44e77b099b15b5ddccfd6b3826d0225de1b0a74f
ms.contentlocale: ja-jp
ms.lasthandoff: 07/28/2017

---
ms.lasthandoff: 08/09/2017

---
# <a name="inheritance-in-c-and-net"></a>C# と .NET での継承

## <a name="introduction"></a>はじめに

このチュートリアルでは、C# での継承について説明します。 継承は、オブジェクト指向プログラミング言語の一機能であり、特定の機能 (データおよび動作) を提供する基底クラスを定義し、その機能を継承またはオーバーライドする派生クラスを定義することができます。

## <a name="prerequisites"></a>必須コンポーネント
Expand Down Expand Up @@ -128,7 +125,7 @@ public struct ValueStructure : ValueType // Generates CS0527.

<xref:System.Object> クラスからの暗黙的な継承により、`SimpleClass` クラスで以下のメソッドが使用可能になります。

- パブリック `ToString` メソッド。`SimpleClass` オブジェクトを完全修飾型名の文字列表記に変換します。 ここで、`ToString` メソッドは文字列 "SimpleClass" を返します。
- パブリック `ToString` メソッド。`SimpleClass` オブジェクトを文字列表記に変換し、完全修飾型名を返します。 ここで、`ToString` メソッドは文字列 "SimpleClass" を返します。

- 2 つのオブジェクトが等しいかどうか調べる 3 つのメソッド: パブリック インスタンス `Equals(Object)` メソッド、パブリック静的 `Equals(Object, Object)` メソッド、およびパブリック静的 `ReferenceEquals(Object, Object)` メソッド。 既定により、これらのメソッドは参照の等価性を調べます。つまり、等価であるためには、2 つのオブジェクトの変数が同じオブジェクトを参照している必要があります。

Expand Down Expand Up @@ -160,7 +157,7 @@ public struct ValueStructure : ValueType // Generates CS0527.
> [!NOTE]
> 1 つのクラスまたは構造体は、1 つまたは複数のインターフェイスを実装できます。 インターフェイスの実装は、単一継承の回避策として、または構造体とともに継承を使用する方法として提示されることが多いですが、継承というよりは、インターフェイスとその実装型の間の別の関係 ("can do" 関係) を表すものとして意図されています。 インターフェイスは、その実装型で使用可能とする機能 (等価性を調べる機能、オブジェクトを比較または並べ替える機能、カルチャに依存した解析および書式設定のサポート機能など) のサブセットを定義します。
なお、"is a" 関係は、型とその型の特定のインスタンス化の間の関係も表します。 次の例では、`Automobile` は一意の読み取り専用プロパティを 3 つ持つクラスです。自動車の製造メーカーである `Moke`、車種である `Model`、そして製造年である `Year` の 3 つです。 この `Automobile` クラスはまた、プロパティ値に割り当てられている引数があるコンストラクターを持ち、<xref:System.Object.ToString%2A?displayProperty=fullName> メソッドをオーバーライドして、`Automobile` クラスではなく `Automobile` インスタンスを一意に識別する文字列を生成します。
なお、"is a" 関係は、型とその型の特定のインスタンス化の間の関係も表します。 次の例では、`Automobile` は一意の読み取り専用プロパティを 3 つ持つクラスです。自動車の製造メーカーである `Make`、車種である `Model`、そして製造年である `Year` の 3 つです。 この `Automobile` クラスはまた、プロパティ値に割り当てられている引数があるコンストラクターを持ち、<xref:System.Object.ToString%2A?displayProperty=fullName> メソッドをオーバーライドして、`Automobile` クラスではなく `Automobile` インスタンスを一意に識別する文字列を生成します。

[!code-csharp[継承](../../../samples/snippets/csharp/tutorials/inheritance/is-a.cs#1)]

Expand Down

0 comments on commit fe000f3

Please sign in to comment.