Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

What is an "INTERFACE CLASS" in VB.NET / C# ?

Posted on 2009-05-17
6
312 Views
Last Modified: 2013-12-17
Hi,

I know what is "INTERFACE" in VB.NET / C#. Can you please explain to me this new term - "INTERFACE CLASS" in VB.NET / C# ? Please provide me simple examples so that i can understand the basic concept better !

Thanks
0
Comment
Question by:milani_lucie
  • 3
  • 2
6 Comments
 
LVL 11

Assisted Solution

by:srikanthreddyn143
srikanthreddyn143 earned 100 total points
ID: 24408559
0
 
LVL 5

Accepted Solution

by:
Aanvik earned 400 total points
ID: 24408666
Its actually termed as class interface... more details here.
http://msdn.microsoft.com/en-us/library/4fcadw4a(VS.71).aspx

This will tell you difference between class and interface.. so you have more idea about it,
http://geekswithblogs.net/mahesh/archive/2006/07/05/84120.aspx
0
 

Author Comment

by:milani_lucie
ID: 24408695
Aanvik:

Can you please explain to me in simple terms ? I have followed this URL : http://msdn.microsoft.com/en-us/library/4fcadw4a(VS.71).aspx but never undesrstood what does it mean.

Appreciate your time and patience !

Thanks
0
Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

 
LVL 5

Assisted Solution

by:Aanvik
Aanvik earned 400 total points
ID: 24408707
0
 

Author Comment

by:milani_lucie
ID: 24408726
This is called an INTERFACE but not a CLASS INTERFACE. Please provide simple example on CLASS INTERFACE.

Thanks
0
 
LVL 5

Assisted Solution

by:Aanvik
Aanvik earned 400 total points
ID: 24408870
An interface class can contain declarations for functions, events, and properties. All interface members have public accessibility. An interface can also contain static data members, functions, events, and properties, and these static members must be defined in the interface.

An interface class defines how a class may be implemented. An interface is not a class and classes can only implement interfaces. When a class defines a function declared in an interface, the function is implemented, not overridden. Therefore, name lookup does not include interface members.

A class or struct that derives from an interface must implement all members of the interface. When implementing interface name you must also implement the interfaces in the base_interface list.
0

Featured Post

Resolve Critical IT Incidents Fast

If your data, services or processes become compromised, your organization can suffer damage in just minutes and how fast you communicate during a major IT incident is everything. Learn how to immediately identify incidents & best practices to resolve them quickly and effectively.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Parsing a CSV file is a task that we are confronted with regularly, and although there are a vast number of means to do this, as a newbie, the field can be confusing and the tools can seem complex. A simple solution to parsing a customized CSV fi…
Today I had a very interesting conundrum that had to get solved quickly. Needless to say, it wasn't resolved quickly because when we needed it we were very rushed, but as soon as the conference call was over and I took a step back I saw the correct …
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

856 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question