So there are 2 classes ,and i'm using windows application form, the for has 2 buttons and code for them are as follows :-
Class MyBaseClass
class MyBaseClass
{
public MyBaseClass(string baseClassNeedsThis)
{
MessageBox.Show("thishe base class:" + baseClassNeedsThis);
}
}
Class MySubClass
class MySubclass : MyBaseClass
{
public MySubclass (string baseClassNeedsThis, int anotherValue)
:base(baseClassNeedsThis)
{
MessageBox.Show("Thishe subclass: " + baseClassNeedsThis + "and" + anotherValue);
}
}
And Form1.cs
public partial class Form1 : Form
{
MyBaseClass myBaseClass;
MySubclass mySubClass;
public Form1()
{
InitializeComponent();
}
private void button1_Click(object sender, EventArgs e)
{
myBaseClass = new MyBaseClass.MyBaseclass(string baseClassNeedsThis);
}
private void button2_Click(object sender, EventArgs e)
{
mySubClass = new MySubclass.MySubclass(string baseClassNeedsThis , int anotherValue);
}
}
The output expected is up on clicking button1 MyBaseClass messsge should pop up and on clicking button2 both MyBaseClass and MySubClass messages should be displayed, i'm getting a lot of errors
Would actually be a good thing if any of these anti-cheat services actually worked. Ever managed to get a game of CS2 online without some Russian hacker on one of the teams ?.
On My machine , i have a load of these (8) anti cheat/anti piracy services running.
If they can get past VAC , then i guess they can bypass any of the others easier.
Lots of trouble for very little gain in my experience
I have around 5000 rides on Uber and trust me I met some crazy bad drivers. But not too many, maybe 10-15 who were bad and 2 that I immediately reported as I felt we barely escaped an major accident for no real reason other then the driver did not know how to change lanes on a busy downtown highway
I would feel safer with robot taxi in that case. But again, out of 5000 rides it’s not too bad
Windows 8.1 is an incremental update to Windows 8. It is too bad there was not a Windows 8.2 or Windows 8.3. I wanted that kind of iteration and refinement; Microsoft could have stair-stepped with that vision.
Question
Ch33f
So there are 2 classes ,and i'm using windows application form, the for has 2 buttons and code for them are as follows :-
Class MyBaseClass
class MyBaseClass { public MyBaseClass(string baseClassNeedsThis) { MessageBox.Show("thishe base class:" + baseClassNeedsThis); } }
Class MySubClass
class MySubclass : MyBaseClass { public MySubclass (string baseClassNeedsThis, int anotherValue) :base(baseClassNeedsThis) { MessageBox.Show("Thishe subclass: " + baseClassNeedsThis + "and" + anotherValue); } }
And Form1.cs
The output expected is up on clicking button1 MyBaseClass messsge should pop up and on clicking button2 both MyBaseClass and MySubClass messages should be displayed, i'm getting a lot of errors
What are the corrections to be made in Form1.cs ?
Link to comment
https://www.neowin.net/forum/topic/1321238-code-not-working/Share on other sites
4 answers to this question
Recommended Posts