Microsoft Official Silent lab Video Solution: Class Extension using Even
Time to Complete: 10 Minutes
Solution Silent Video:
To create an interface, follow these steps:
Step 01: Open the visual studio Project. Right-clickon Project goto Add-> NewItem
Step 02: Select code under dynamics 365 itemsand Interface inthe middle pane, Input the name: IDrivable Click Add
Step 03: Add codetoyourclassfromthe example given atend
Step 04: Rightclickon Project goto Add-> NewItem
Step 05: Select code under dynamics365 itemsand Class inthe middle pane, Input the name: Automobile Click Add
Step 06: Add code toyour class
Step 07: Add another class with name: UseAnAutoMobile
Step 08: Add code toyour class using examples givenatend
Inthefollowing example, an Automobile classimplementsan IDrivable interface. Theis keyword is supported andletsyoutestwhether a class implements an interface.