6902 Shares

(c# programming) what does this "new" mean?

(c# programming) what does this "new" mean? Topic: Case syntax
June 26, 2019 / By Kaylin
Question: I am beginner and have just succeeded in counjuring out Form2... but I need to understand this syntax point by point! thanks!! this.Hide(); Form2 f2 = new Form2(); f2.ShowDialog();
Best Answer

Best Answers: (c# programming) what does this "new" mean?

Hunter Hunter | 2 days ago
Ok so new means you are making an instance from the class Form2 and creating an object called f2. And the class Form2 must contain a method or function called ShowDialog() , that shows some dialog box. So you can invoke a method on your object f2, in this case we are invoking a method called ShowDialog.
👍 132 | 👎 2
Did you like the answer? (c# programming) what does this "new" mean? Share with your friends

We found more questions related to the topic: Case syntax


Hunter Originally Answered: Pseudocode help for object-oriented programming. No programming language needed for answer?
To the top person: How do you not know pseudocode? Pseudocode should be written in plain english with basic programming structures. Plus you have one of the steps wrong... To the original asker: For 2 to 30 step 2 Print number Next For 10 to 1 step -1 Print number Next
Hunter Originally Answered: Pseudocode help for object-oriented programming. No programming language needed for answer?
This is actually an instance where pseudocode is pointless. Solving this problems depends 100% on your language of choice. There is no general solution which it makes any sense to talk about. In Ruby, you can just write: 2.step(30, 2) {|x| puts x} and, even more intuitively: 10.downto(1) {|x| puts x}
Hunter Originally Answered: Pseudocode help for object-oriented programming. No programming language needed for answer?
He maybe attempting to assert which you would be able to desire to earnings programming structures and straightforward sense, extremely than languages. This particularly is ordinary, too. as an occasion, with the flexibility to maintain a communication in 15 human languages would not advise you will write an innovations-blowing artwork of literature in any of them; and a particularly solid written application is corresponding to a particularly solid written e book, in that it demands to have many aspects that slot mutually in non-seen even though if magnificent procedures.

Edwina Edwina
C# is object oriented, which means it uses classes. Those are blueprints for data objects. Here's an example: http://ideone.com/etb0ps
👍 50 | 👎 -4

Edwina Originally Answered: I need C programming help?
I will not even attempt to be rude, there are lots of programmers forums that have guys saying "Do your own homework" if that was the case no one would know how to program anything. I'm assuming that you are using arrays of char rather than the string class. Well what you will need to do is a fairly straight forward code. char name[20]; char surname [20]; cout<<" Hello could I have your name : "; cin>>name; cout<<" could I have your surname : "; cin>>surname; cout<<" Hello "<
Edwina Originally Answered: I need C programming help?
So at least attempt to do your own homework. The idea is that you practise the concepts covered in class to reinforce the knowledge, just asking others to do it for you means you will never learn to think for yourself. The problem is a trivial one, read data from the keyboard and then output it. PSEUDO CODE define firstName as string define LastName as string prompt Enter your name get firstName lastName output firstName output lastName output firstName " " lastName

If you have your own answer to the question case syntax, then you can write your own version, using the form below for an extended answer.