Initial commit
This commit is contained in:
39
13.1-Enkel_OOP/13.1-Enkel_OOP.csproj
Normal file
39
13.1-Enkel_OOP/13.1-Enkel_OOP.csproj
Normal file
@@ -0,0 +1,39 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<PropertyGroup>
|
||||
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
||||
<Platform Condition=" '$(Platform)' == '' ">x86</Platform>
|
||||
<ProjectGuid>{27285D0A-50CB-4CF2-94DE-309DDD1078EA}</ProjectGuid>
|
||||
<OutputType>Exe</OutputType>
|
||||
<RootNamespace>Enkel_OOP</RootNamespace>
|
||||
<AssemblyName>13.1-Enkel_OOP</AssemblyName>
|
||||
<TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|x86' ">
|
||||
<DebugSymbols>true</DebugSymbols>
|
||||
<DebugType>full</DebugType>
|
||||
<Optimize>false</Optimize>
|
||||
<OutputPath>bin\Debug</OutputPath>
|
||||
<DefineConstants>DEBUG;</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
<ConsolePause>false</ConsolePause>
|
||||
<PlatformTarget>x86</PlatformTarget>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|x86' ">
|
||||
<DebugType>full</DebugType>
|
||||
<Optimize>true</Optimize>
|
||||
<OutputPath>bin\Release</OutputPath>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
<ConsolePause>false</ConsolePause>
|
||||
<PlatformTarget>x86</PlatformTarget>
|
||||
</PropertyGroup>
|
||||
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
|
||||
<ItemGroup>
|
||||
<Compile Include="Enkel_OOP.cs" />
|
||||
<Compile Include="Hund.cs" />
|
||||
<Compile Include="Kanin.cs" />
|
||||
<Compile Include="Katt.cs" />
|
||||
</ItemGroup>
|
||||
</Project>
|
||||
17
13.1-Enkel_OOP/13.1-Enkel_OOP.sln
Normal file
17
13.1-Enkel_OOP/13.1-Enkel_OOP.sln
Normal file
@@ -0,0 +1,17 @@
|
||||
|
||||
Microsoft Visual Studio Solution File, Format Version 12.00
|
||||
# Visual Studio 2012
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "13.1-Enkel_OOP", "13.1-Enkel_OOP.csproj", "{27285D0A-50CB-4CF2-94DE-309DDD1078EA}"
|
||||
EndProject
|
||||
Global
|
||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||
Debug|x86 = Debug|x86
|
||||
Release|x86 = Release|x86
|
||||
EndGlobalSection
|
||||
GlobalSection(ProjectConfigurationPlatforms) = postSolution
|
||||
{27285D0A-50CB-4CF2-94DE-309DDD1078EA}.Debug|x86.ActiveCfg = Debug|x86
|
||||
{27285D0A-50CB-4CF2-94DE-309DDD1078EA}.Debug|x86.Build.0 = Debug|x86
|
||||
{27285D0A-50CB-4CF2-94DE-309DDD1078EA}.Release|x86.ActiveCfg = Release|x86
|
||||
{27285D0A-50CB-4CF2-94DE-309DDD1078EA}.Release|x86.Build.0 = Release|x86
|
||||
EndGlobalSection
|
||||
EndGlobal
|
||||
15
13.1-Enkel_OOP/13.1-Enkel_OOP.userprefs
Normal file
15
13.1-Enkel_OOP/13.1-Enkel_OOP.userprefs
Normal file
@@ -0,0 +1,15 @@
|
||||
<Properties StartupItem="13.1-Enkel_OOP.csproj" RefactoringSettings.EnableRefactorings="True">
|
||||
<MonoDevelop.Ide.Workspace ActiveConfiguration="Debug|x86" />
|
||||
<MonoDevelop.Ide.Workbench ActiveDocument="Enkel_OOP.cs">
|
||||
<Files>
|
||||
<File FileName="Enkel_OOP.cs" Line="14" Column="3" />
|
||||
<File FileName="Hund.cs" Line="4" Column="33" />
|
||||
<File FileName="Kanin.cs" Line="14" Column="33" />
|
||||
<File FileName="Katt.cs" Line="5" Column="2" />
|
||||
</Files>
|
||||
</MonoDevelop.Ide.Workbench>
|
||||
<MonoDevelop.Ide.DebuggingService.Breakpoints>
|
||||
<BreakpointStore />
|
||||
</MonoDevelop.Ide.DebuggingService.Breakpoints>
|
||||
<MonoDevelop.Ide.DebuggingService.PinnedWatches />
|
||||
</Properties>
|
||||
20
13.1-Enkel_OOP/Enkel_OOP.cs
Normal file
20
13.1-Enkel_OOP/Enkel_OOP.cs
Normal file
@@ -0,0 +1,20 @@
|
||||
using System;
|
||||
|
||||
class Enkel_OOP {
|
||||
public static void Main() {
|
||||
Hund h = new Hund();
|
||||
Kanin k = new Kanin();
|
||||
Katt c = new Katt();
|
||||
|
||||
h.namn = "Fido";
|
||||
Console.WriteLine("Hunden heter: " + h.namn);
|
||||
|
||||
k.setName("Bambi");
|
||||
Console.WriteLine("Kaninen heter: " + k.getName());
|
||||
|
||||
c.setName("Missen");
|
||||
Console.WriteLine("Katten heter: " + c.getName());
|
||||
|
||||
Console.WriteLine("Allt klart...");
|
||||
}
|
||||
}
|
||||
11
13.1-Enkel_OOP/Hund.cs
Normal file
11
13.1-Enkel_OOP/Hund.cs
Normal file
@@ -0,0 +1,11 @@
|
||||
using System;
|
||||
|
||||
public class Hund {
|
||||
public string namn;
|
||||
// FEL!!!!!
|
||||
|
||||
public Hund() {
|
||||
Console.WriteLine("Skapade en Hund");
|
||||
}
|
||||
}
|
||||
|
||||
18
13.1-Enkel_OOP/Kanin.cs
Normal file
18
13.1-Enkel_OOP/Kanin.cs
Normal file
@@ -0,0 +1,18 @@
|
||||
using System;
|
||||
|
||||
public class Kanin {
|
||||
private string namn;
|
||||
|
||||
public Kanin() {
|
||||
Console.WriteLine("Skapade en Kanin");
|
||||
}
|
||||
|
||||
public string getName() {
|
||||
return namn;
|
||||
}
|
||||
|
||||
public void setName(string n) {
|
||||
namn = n;
|
||||
}
|
||||
}
|
||||
|
||||
18
13.1-Enkel_OOP/Katt.cs
Normal file
18
13.1-Enkel_OOP/Katt.cs
Normal file
@@ -0,0 +1,18 @@
|
||||
using System;
|
||||
|
||||
public class Katt {
|
||||
private string namn;
|
||||
|
||||
public Katt() {
|
||||
Console.WriteLine("Skapade en Katt");
|
||||
}
|
||||
|
||||
public string getName() {
|
||||
return namn;
|
||||
}
|
||||
|
||||
public void setName(string n) {
|
||||
namn = n;
|
||||
}
|
||||
}
|
||||
|
||||
BIN
13.1-Enkel_OOP/bin/Debug/13.1-Enkel_OOP.exe
Normal file
BIN
13.1-Enkel_OOP/bin/Debug/13.1-Enkel_OOP.exe
Normal file
Binary file not shown.
BIN
13.1-Enkel_OOP/bin/Debug/13.1-Enkel_OOP.pdb
Normal file
BIN
13.1-Enkel_OOP/bin/Debug/13.1-Enkel_OOP.pdb
Normal file
Binary file not shown.
@@ -0,0 +1,5 @@
|
||||
C:\Users\Crille\CSharp\13.1-Enkel_OOP\bin\Debug\13.1-Enkel_OOP.exe
|
||||
C:\Users\Crille\CSharp\13.1-Enkel_OOP\bin\Debug\13.1-Enkel_OOP.pdb
|
||||
C:\Users\Crille\CSharp\13.1-Enkel_OOP\obj\x86\Debug\13.1-Enkel_OOP.csprojResolveAssemblyReference.cache
|
||||
C:\Users\Crille\CSharp\13.1-Enkel_OOP\obj\x86\Debug\13.1-Enkel_OOP.exe
|
||||
C:\Users\Crille\CSharp\13.1-Enkel_OOP\obj\x86\Debug\13.1-Enkel_OOP.pdb
|
||||
Binary file not shown.
BIN
13.1-Enkel_OOP/obj/x86/Debug/13.1-Enkel_OOP.exe
Normal file
BIN
13.1-Enkel_OOP/obj/x86/Debug/13.1-Enkel_OOP.exe
Normal file
Binary file not shown.
BIN
13.1-Enkel_OOP/obj/x86/Debug/13.1-Enkel_OOP.pdb
Normal file
BIN
13.1-Enkel_OOP/obj/x86/Debug/13.1-Enkel_OOP.pdb
Normal file
Binary file not shown.
Reference in New Issue
Block a user