How do I fix inaccessibility error in C#?`
<p>When I run my C# app, it shows the following error </p>

<blockquote>
  <p><em>Inconsistent accessibility: parameter type 'timesheet.libs.DbObject' is less accessible than method 'timesheet.model.usertimesheet.usertimesheet(timesheet.libs.DbObject)'   C:\Users\user\Desktop\Interface+code\Interface+code\timesheet\model\usertimesheet.cs</em>   </p>
  
  <p><em>Inconsistent accessibility: parameter type 'timesheet.libs.DbObject' is less accessible than method 'timesheet.MainFormMDI.setdbobject(timesheet.libs.DbObject)' C:\Users\user\Desktop\Interface+code\Interface+code\timesheet\MainFormMDI.cs</em></p>
  
  <p><em>Inconsistent accessibility: parameter type 'timesheet.libs.DbObject' is less accessible than method 'timesheet.model.user.user(timesheet.libs.DbObject)' C:\Users\user\Desktop\Interface+code\Interface+code\timesheet\model\user.cs</em></p>
  
  <p><em>Inconsistent accessibility: parameter type 'timesheet.libs.DbObject' is less accessible than method 'timesheet.model.project.project(timesheet.libs.DbObject)'   C:\Users\user\Desktop\Interface+code\Interface+code\timesheet\model\project.cs</em></p>
</blockquote>

<p>I have a snippet of login.cs  as</p>

<pre><code>MainFormMDI mainform = new MainFormMDI();
mainform.setdbobject(dbobject);
mainform.setuserobject(userobj);
mainform.Show();
</code></pre>

<p><code>MainFormMDI.cs</code>:</p>

<pre><code>using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using timesheet.model;
using timesheet.libs;

namespace timesheet
{
    public partial class MainFormMDI : Form
    {
        private DbObject dbobject;
        private  user userobj;

        public MainFormMDI( )
        {
            InitializeComponent();
        }

        public void setdbobject(DbObject dbobject) 
        {
            this.dbobject = dbobject;
        }

        public void setuserobject(user userobj) 
        {
            this.userobj = userobj;
        }

        private void MainFormMDI_Load(object sender, EventArgs e)
        {
        }

        private void adminPanelToolStripMenuItem_Click(object sender, EventArgs e)
        {
        }
    }
}
</code></pre>

<p>I tried other solutions like changing the dbobject and user class to public but nothing changes. I want to pass the userobject and the dbobject to the MainFormMDI  class to be able to carry out further actions on these objects. I will be happy to hear your fixes .</p>
