'brella boy
'brella boy
CC#
Created by 'brella boy on 11/19/2024 in #help
i have 44 errors that I don't know how to fix
yeah it didnt work but im gonna try and learn off chatgpt
171 replies
CC#
Created by 'brella boy on 11/19/2024 in #help
i have 44 errors that I don't know how to fix
alr gn
171 replies
CC#
Created by 'brella boy on 11/19/2024 in #help
i have 44 errors that I don't know how to fix
ill try this
171 replies
CC#
Created by 'brella boy on 11/19/2024 in #help
i have 44 errors that I don't know how to fix
mk
171 replies
CC#
Created by 'brella boy on 11/19/2024 in #help
i have 44 errors that I don't know how to fix
No description
171 replies
CC#
Created by 'brella boy on 11/19/2024 in #help
i have 44 errors that I don't know how to fix
more of them
171 replies
CC#
Created by 'brella boy on 11/19/2024 in #help
i have 44 errors that I don't know how to fix
oh
171 replies
CC#
Created by 'brella boy on 11/19/2024 in #help
i have 44 errors that I don't know how to fix
wtf
171 replies
CC#
Created by 'brella boy on 11/19/2024 in #help
i have 44 errors that I don't know how to fix
removed that
171 replies
CC#
Created by 'brella boy on 11/19/2024 in #help
i have 44 errors that I don't know how to fix
i swear i just
171 replies
CC#
Created by 'brella boy on 11/19/2024 in #help
i have 44 errors that I don't know how to fix
ill just send screenshots
171 replies
CC#
Created by 'brella boy on 11/19/2024 in #help
i have 44 errors that I don't know how to fix
uhhh
171 replies
CC#
Created by 'brella boy on 11/19/2024 in #help
i have 44 errors that I don't know how to fix
oops
171 replies
CC#
Created by 'brella boy on 11/19/2024 in #help
i have 44 errors that I don't know how to fix
no lines
171 replies
CC#
Created by 'brella boy on 11/19/2024 in #help
i have 44 errors that I don't know how to fix
oh wait
171 replies
CC#
Created by 'brella boy on 11/19/2024 in #help
i have 44 errors that I don't know how to fix
using System;
// for ListOf
using System.Collections.Generic;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using System.Security.Cryptography.X509Certificates;

public class Program
{

// Actor in the game
class Actor
{
protected String _name; // can be accessed by the subclasses
protected int x; // x cordinate
protected int y; // y cordinate

// Constructor
public Actor(String n)
{
_name = n;
x = 0; // initialise cordinates
y = 0;
}

// getter to get the coordinates of the object

int inputForY = Convert.ToInt32(Console.ReadLine());
int inputForX = Convert.ToInt32(Console.ReadLine());

public int Y
{
get { return y; }
set { y = inputForY; }
}

public int X
{
get { return x; }
set { x = inputForX; }
}


public (int, int) getCordinates()
{
return (x, y);

}
// draw( )method.
// Derived classes may provide an implementation
public virtual void draw()
{
Console.WriteLine("Actor {0}: Base draw() method for an actor", _name);
}

}

// Archer class.
// Attributes: bowLength
// Method: implement the draw() method to override
// the implementation the base class
class Archer : Actor
{
private int bowLength;

// Constructor for Archer.
// Call the constructor for Actor using the name
public Archer(String name, int b) : base(name)
{
bowLength = b;
}
public override void draw()
{
Console.WriteLine("Archer: {0} with bowlength {1}", this._name, bowLength);
}

public void getX()
{
X();
Console.WriteLine("x is " + x);
}

public void getY()
{
Y();
Console.WriteLine("y is " + y);
}
}


public static void Main(string[] args)
{


// Create a list of Actor object
List<Actor> actorList = new List<Actor>();

// Add instances of Actor objects to the actorList
actorList.Add(new Actor("Ian McEwan"));
actorList.Add(new Archer("Legolas", 120));

// Iterate through the list of actors and call the
// call the draw method for each one
foreach (var a in actorList)
{
a.draw(); // draw the actor


}
}
}
using System;
// for ListOf
using System.Collections.Generic;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using System.Security.Cryptography.X509Certificates;

public class Program
{

// Actor in the game
class Actor
{
protected String _name; // can be accessed by the subclasses
protected int x; // x cordinate
protected int y; // y cordinate

// Constructor
public Actor(String n)
{
_name = n;
x = 0; // initialise cordinates
y = 0;
}

// getter to get the coordinates of the object

int inputForY = Convert.ToInt32(Console.ReadLine());
int inputForX = Convert.ToInt32(Console.ReadLine());

public int Y
{
get { return y; }
set { y = inputForY; }
}

public int X
{
get { return x; }
set { x = inputForX; }
}


public (int, int) getCordinates()
{
return (x, y);

}
// draw( )method.
// Derived classes may provide an implementation
public virtual void draw()
{
Console.WriteLine("Actor {0}: Base draw() method for an actor", _name);
}

}

// Archer class.
// Attributes: bowLength
// Method: implement the draw() method to override
// the implementation the base class
class Archer : Actor
{
private int bowLength;

// Constructor for Archer.
// Call the constructor for Actor using the name
public Archer(String name, int b) : base(name)
{
bowLength = b;
}
public override void draw()
{
Console.WriteLine("Archer: {0} with bowlength {1}", this._name, bowLength);
}

public void getX()
{
X();
Console.WriteLine("x is " + x);
}

public void getY()
{
Y();
Console.WriteLine("y is " + y);
}
}


public static void Main(string[] args)
{


// Create a list of Actor object
List<Actor> actorList = new List<Actor>();

// Add instances of Actor objects to the actorList
actorList.Add(new Actor("Ian McEwan"));
actorList.Add(new Archer("Legolas", 120));

// Iterate through the list of actors and call the
// call the draw method for each one
foreach (var a in actorList)
{
a.draw(); // draw the actor


}
}
}
171 replies
CC#
Created by 'brella boy on 11/19/2024 in #help
i have 44 errors that I don't know how to fix
instead
171 replies
CC#
Created by 'brella boy on 11/19/2024 in #help
i have 44 errors that I don't know how to fix
No description
171 replies
CC#
Created by 'brella boy on 11/19/2024 in #help
i have 44 errors that I don't know how to fix
i got
171 replies
CC#
Created by 'brella boy on 11/19/2024 in #help
i have 44 errors that I don't know how to fix
yeah
171 replies