Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

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

Posted on 2009-05-17
6
Medium Priority
?
330 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 300 total points
ID: 24408559
0
 
LVL 5

Accepted Solution

by:
Aanvik earned 1200 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
Prepare for your VMware VCP6-DCV exam.

Josh Coen and Jason Langer have prepared the latest edition of VCP study guide. Both authors have been working in the IT field for more than a decade, and both hold VMware certifications. This 163-page guide covers all 10 of the exam blueprint sections.

 
LVL 5

Assisted Solution

by:Aanvik
Aanvik earned 1200 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 1200 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

What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

Question has a verified solution.

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

Many of us here at EE write code. Many of us write exceptional code; just as many of us write exception-prone code. As we all should know, exceptions are a mechanism for handling errors which are typically out of our control. From database errors, t…
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
Is your data getting by on basic protection measures? In today’s climate of debilitating malware and ransomware—like WannaCry—that may not be enough. You need to establish more than basics, like a recovery plan that protects both data and endpoints.…
This lesson discusses how to use a Mainform + Subforms in Microsoft Access to find and enter data for payments on orders. The sample data comes from a custom shop that builds and sells movable storage structures that are delivered to your property. …
Suggested Courses

916 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