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
325.2k
Default access modifier
Aug 31 2013 10:13 AM
I wish to know whether following highlighted method headers have a default access modifier. Is there any way to find out default access modifier?
using System;
class CreateEmployee
{
static void Main()
{
Employee myAssistant = new Employee();
myAssistant.SetId(345);
Console.WriteLine("ID # is {0}", myAssistant.GetId());
Console.ReadKey();
}
}
class Employee
{
int idNumber;
public int GetId()
{
return idNumber;
}
public void SetId(int id)
{
idNumber = id;
}
}
Reply
Answers (
2
)
c# program
Show details of page on mouse over on Reapeater paging