using System;
using System.Collections.Generic;
using System.Text;
namespace Project1
{
public class Homework
{
public static void Main(string [] args)
{
Dad d = new Dad();
d.LitCig();
Helper h = new Helper();
}
}
public class Dad
{
void WithDrawMoney()
{
Console.WriteLine("Father: Money Withdrawn");
}
internal void Mercedes()
{
Console.WriteLine("Father: drive a Mercedes");
}
internal void ToShower()
{
Console.WriteLine("Father: To Shower");
}
protected void TakingDog2Vaccine()
{
Console.WriteLine("Dog vaccinated");
}
public void LitCig()
{
Console.WriteLine("Cig lit");
}
}
public class Helper
{
internal void Mercedes()
{
Console.WriteLine("Helper: drive a Mercedes");
}
internal void ToShower()
{
Console.WriteLine("helper: To Shower");
}
public void LitCig()
{
Console.WriteLine("Cig lit");
}
}
}
using System;
using System.Collections.Generic;
using System.Text;
namespace ConsoleApplication1
{
public class HomeWorkProtectedInternal
{
public static void Main(String[] args)
{
Son s = new Son();
s.LitCig();
}
}
public class Son
{
public void LitCig()
{
Console.WriteLine("Cig lit");
}
}
}
i have 2 of those classes , i try to import one class into another by going to the option in the toolbar "build" and then "build solution.
then when i come to add a reference in teh other project. i cant find a dll file..
i looked in the project folder of C visual basics 2008 , but no luck... i see only an execution file.. .exe
why is that?