Skip to content

Commit 68ba37a

Browse files
author
3836425+corob-msft@users.noreply.github.com
committed
Address issue in DD PR 1393452
1 parent c6608f9 commit 68ba37a

1 file changed

Lines changed: 20 additions & 20 deletions

File tree

docs/extensions/interface-class-cpp-component-extensions.md

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
---
2-
description: "Learn more about: interface class (C++/CLI and C++/CX)"
2+
description: "Learn more about: interface class (C++/CLI and C++/CX)"
33
title: "interface class (C++/CLI and C++/CX)"
4-
ms.date: "10/12/2018"
4+
ms.date: 04/15/2022
55
ms.topic: "reference"
6-
f1_keywords: ["interface_CPP"]
6+
f1_keywords: ["interface_CPP", "interface class", "interface class_CPP"]
77
helpviewer_keywords: ["interface class keyword", "interface struct keyword"]
88
ms.assetid: 3ccea701-f50b-4da7-ad6b-f0ee1203e2b9
99
---
10-
# interface class (C++/CLI and C++/CX)
10+
# `interface class` (C++/CLI and C++/CX)
1111

12-
Declares an interface. For information on native interfaces, see [__interface](../cpp/interface.md).
12+
Declares an interface. For information on native interfaces, see [`__interface`](../cpp/interface.md).
1313

14-
## All Runtimes
14+
## All runtimes
1515

1616
### Syntax
1717

@@ -22,39 +22,39 @@ interface_access interface struct name : inherit_access base_interface {};
2222
2323
### Parameters
2424
25-
*interface_access*<br/>
26-
The accessibility of an interface outside the assembly. Possible values are **`public`** and **`private`**. **`private`** is the default. Nested interfaces cannot have an *interface_access* specifier.
25+
*`interface_access`*\
26+
The accessibility of an interface outside the assembly. Possible values are **`public`** and **`private`**. **`private`** is the default. Nested interfaces can't have an *`interface_access`* specifier.
2727
28-
*name*<br/>
28+
*`name`*\
2929
The name of the interface.
3030
31-
*inherit_access*<br/>
32-
The accessibility of *base_interface*. The only permitted accessibility for a base interface is **`public`** (the default).
31+
*`inherit_access`*\
32+
The accessibility of *`base_interface`*. The only permitted accessibility for a base interface is **`public`** (the default).
3333
34-
*base_interface*<br/>
35-
(Optional) A base interface for interface *name*.
34+
*`base_interface`*\
35+
(Optional) A base interface for interface *`name`*.
3636
3737
### Remarks
3838
39-
**interface struct** is equivalent to **interface class**.
39+
**`interface struct`** is equivalent to **`interface class`**.
4040
4141
An interface can contain declarations for functions, events, and properties. All interface members have public accessibility. An interface can also contain static data members, functions, events, and properties, and these static members must be defined in the interface.
4242
43-
An interface defines how a class may be implemented. An interface is not a class and classes can only implement interfaces. When a class defines a function declared in an interface, the function is implemented, not overridden. Therefore, name lookup does not include interface members.
43+
An interface defines how a class may be implemented. An interface isn't a class and classes can only implement interfaces. When a class defines a function declared in an interface, the function is implemented, not overridden. Therefore, name lookup doesn't include interface members.
4444
45-
A class or struct that derives from an interface must implement all members of the interface. When implementing interface *name* you must also implement the interfaces in the `base_interface` list.
45+
A `class` or `struct` that derives from an interface must implement all members of the interface. When implementing interface *`name`*, you must also implement the interfaces in the *`base_interface`* list.
4646
4747
For more information, see:
4848
49-
- [Interface Static Constructor](../dotnet/how-to-define-an-interface-static-constructor-cpp-cli.md)
49+
- [Interface static constructor](../dotnet/how-to-define-an-interface-static-constructor-cpp-cli.md)
5050
51-
- [Generic Interfaces (C++/CLI)](generic-interfaces-visual-cpp.md)
51+
- [Generic interfaces (C++/CLI)](generic-interfaces-visual-cpp.md)
5252
5353
For information on other CLR types, see [Classes and Structs](classes-and-structs-cpp-component-extensions.md).
5454
55-
You can detect at compile time if a type is an interface with `__is_interface_class(type)`. For more information, see [Compiler Support for Type Traits](compiler-support-for-type-traits-cpp-component-extensions.md).
55+
You can detect at compile time if a type is an interface with `__is_interface_class(type)`. For more information, see [Compiler support for type traits](compiler-support-for-type-traits-cpp-component-extensions.md).
5656
57-
In the development environment, you can get F1 help on these keywords by highlighting the keyword, (**`interface class`**, for example) and pressing F1.
57+
In the development environment, you can get F1 help on these keywords by highlighting the keyword (for example, **`interface class`**) and pressing **F1**.
5858
5959
## Windows Runtime
6060

0 commit comments

Comments
 (0)