Solved

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

Posted on 2009-05-17
6
309 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
3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

 
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
how to read json value 2 32
Get Top Visible Row of Datagridview 6 28
Entity Framework 7 33
Assigning handler to UserControls in flowlayoutpanel 4 12
It’s quite interesting for me as I worked with Excel using vb.net for some time. Here are some topics which I know want to share with others whom this might help. First of all if you are working with Excel then you need to Download the Following …
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…
This tutorial gives a high-level tour of the interface of Marketo (a marketing automation tool to help businesses track and engage prospective customers and drive them to purchase). You will see the main areas including Marketing Activities, Design …
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).

863 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

Need Help in Real-Time?

Connect with top rated Experts

28 Experts available now in Live!

Get 1:1 Help Now