C#:
namespace SafeHaven
{
public class Class
{
public string Name { get; set; }
public string Description { get; set; }
public decimal Balance { get; set; }
public int Amount { get; set; } = 0;
public void MakeCharacteristics() { }
public void MakeCharacteristics(int amount) { }
public Class(string name, string description, decimal InitialBalance) {
this.Name = name;
this.Description = description;
}
}
}
C#:
// See [URL='https://aka.ms/new-console-template']C# console app template changes in .NET 6+ - .NET[/URL] for more information
// A skeleton of a C# program
using System;
using SafeHaven;
abstract class Brain
{
public void StartNeurons() { char[] neurons = "ABCDEFGHIJKLMNOPQRSTUVWXYZ".ToCharArray(); }
protected char[] AddNeurons(char[] neurons)
{
return neurons;
}
public virtual string Drive(char[] chars, int index) { return "neurons"; }
public abstract int neuronIndicator();
}
class MainMethod
{
// Main Method
static public void Main(String[] args)
{
char[] alpha = "ABCDEFGHIJKLMNOPQRSTUVWXYZ".ToCharArray();
Console.WriteLine("Main Method");
Console.WriteLine(alpha);
var account = new Class("Gabon", "Millionaire", 1000000);
}
}
Last edited by a moderator: