Reputation: 29
I want to write inheritances in C# in one namespace. They are three classes: IAccount, Account, CustomerAccount
I want to write them in different classes but it gives me this error message:
The type or namespace name 'IAccount' could not be found (are you missing a using directive or an assembly reference?)
I wrote these directives in the beginning of each class:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
Upvotes: 0
Views: 116
Reputation: 62246
These classes most probabbly stay into different namepsaces (casually or not). So
or declare necessary namespace with others on top of the file with using
or uniform all namepsaces within the same one (main program namepsace)
Upvotes: 2