Solved

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

Posted on 2009-05-17
6
311 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
DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

 
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

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.

Question has a verified solution.

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

Wouldn’t it be nice if you could test whether an element is contained in an array by using a Contains method just like the one available on List objects? Wouldn’t it be good if you could write code like this? (CODE) In .NET 3.5, this is possible…
The ECB site provides FX rates for major currencies since its inception in 1999 in the form of an XML feed. The files have the following format (reducted for brevity) (CODE) There are three files available HERE (http://www.ecb.europa.eu/stats/exch…
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.
Established in 1997, Technology Architects has become one of the most reputable technology solutions companies in the country. TA have been providing businesses with cost effective state-of-the-art solutions and unparalleled service that is designed…

770 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