26.Namespace
Last updated
Was this helpful?
Was this helpful?
namespace ProjectName.Models
{
public class Teacher
{
public int Id { get; set; }
public string Name { get; set; }
}
public class Student
{
public int Id { get; set; }
public string Name { get; set; }
public Teacher TeacherAssistance { get; set; }
}
}
namespace ProjectName.DAC
{
public interface SQLConnector
{
void Connect();
void Disconnect();
}
public interface IMongoDbConnector
{
void Connect();
void Disconnect();
}
}using System;
using ProjectName.Models;
namespace DemoConsoleApp
{
class Program
{
static void Main(string[] args)
{
Teacher t01 = new Teacher();
}
}
}using sys = System;
namespace DemoConsoleApp
{
class Program
{
static void Main(string[] args)
{
sys.Console.WriteLine("Hello World!");
}
}
}