Error CS0246 The type or namespace name 'Hardware' could not be found (are you missing a using directive or an assembly reference?) in visual c# When we run this program in Visual Studio 2k19 in C# Console application There is problem showing : Error CS0246 The type or namespace name 'Hardware' could not be found (are you missing a using directive or an assembly reference?)
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace OOP1
{
class Program
{
static void Main(string[] args)
{
Hardware hf = new Hardware(); // error in this line
Console.ReadLine();
}
}
}
--------------
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace OOP1.com.inventoryMsystem
{
class Hardware : Product
{
public Hardware()
{
Console.WriteLine("Hardware");
}
}
}
----------
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace OOP1.com.inventoryMsystem
{
class Product
{
public Product()
{
Console.WriteLine("Product");
}
}
}