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
Ankit Kumar
NA
159
48.3k
Problem with Inheritance in c#
Feb 25 2016 4:21 AM
Dear all,
i have a confusion with interface.
i have created a method in interface and trying to give implementation in the derived class.
i am trying to declare the method with access specifiers but with access specifiers, i am getting an error.
Please help me.
below is my code.
using System;
public interface Windows
{
private void Configuration();
}
class Windows_7:Windows
{
public void Configuration()
{
Console.WriteLine("this O.S. is protected by microsoft security team");
Console.WriteLine("This is 32 bit O.S.");
}
}
class Program
{
public static void Main(string[]args)
{Windows_7 obj = new Windows_7();
obj.Configuration();
obj.Test();
Console.ReadLine();
}
}
Reply
Answers (
8
)
Assign more than 256 character in string
Create Login API in C# ASP.NET VS 2010