Tech
Forums
Jobs
Books
Events
Videos
Conference
Annual Conference
Bcrypt
Ai Conference
Live
More
Interviews
Certification
Training
Career
Members
News
Blogs
Contribute
An Article
A Blog
A Video
An Ebook
An Interview Question
Register
Login
1
Answer
Inheritance problem
Ask a question
Ask a question
Upload Source Code:
Select only zip and rar file.
Nath
18y
1.8k
1
Reply
Why won't this code work?
using
System
;
using
System
.
Windows
.
Forms
;
namespace
Practice
{
class
Practice
{
public
static
void
Main
()
{
// declare and assign a string variable called human
string
human
;
human
=
"Walking & talking life"
;
// declare and assign an int variable called mind
int
mind
;
mind
=
100
;
// Print the value of the variables to the console
Console
.
WriteLine
(
mind
);
Console
.
WriteLine
(
human
);
}
}
class
Continued
{
public
static
void
notMain
()
{
MessageBox
.
Show
(
human
);
MessageBox
.
Show
(
mind
);
}
}
}
Post
Reset
Cancel
Answers (
1
)
Next Recommended Forum
Using Tabs in Web Pages
storing value