TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Maha
NA
0
328.1k
Partial class
Jun 22 2014 12:02 PM
This program has three files. O/P expected is {1, E1, 10000} but no o/p at all. Please identify the error.
using System;
namespace PartialClassesAndMethodsDemoApp
{
partial class Employee
{
public override string ToString()
{
return "{" + EmployeeID + "," + Name + "," + Salary + "}";
}
}
}
--------------------------------------
using System;
namespace PartialClassesAndMethodsDemoApp
{
partial
class Employee
{
public int EmployeeID;
public string Name;
public decimal Salary;
}
}
------------------------------------------
using System;
namespace PartialClassesAndMethodsDemoApp
{
class Program
{
static void Main(string[] args)
{
Employee emp = new Employee() { EmployeeID = 1, Name = "E1", Salary = 10000 };
}
}
}
Reply
Answers (
5
)
Does not iterate through datarow
how to upload file from client machine to server in vb.net?