473,320 Members | 1,722 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

Interface -- C# thing or .NET thing

gz
Hi All,

I am wondering if the notion of interface is a C# thing or .NET thing.
In other words, is it supported at the language level, like C++'s
support of classes, or at the runtime level? Could anyone help?

Thanks,
gz

Oct 11 '07 #1
5 1361

It's an OO thing. Object Oriented.

http://en.wikipedia.org/wiki/Object_Oriented

............


"gz" <zy*******@gmail.comwrote in message
news:11*********************@o3g2000hsb.googlegrou ps.com...
Hi All,

I am wondering if the notion of interface is a C# thing or .NET thing.
In other words, is it supported at the language level, like C++'s
support of classes, or at the runtime level? Could anyone help?

Thanks,
gz

Oct 11 '07 #2
Hi,

"gz" <zy*******@gmail.comwrote in message
news:11*********************@o3g2000hsb.googlegrou ps.com...
Hi All,

I am wondering if the notion of interface is a C# thing or .NET thing.
In other words, is it supported at the language level, like C++'s
support of classes, or at the runtime level? Could anyone help?
Well interfaces are defined ALL over the framework. That only should
indicate that they are a .NET "thing" don't you think?

Oct 11 '07 #3

"gz" <zy*******@gmail.comwrote in message
news:11*********************@o3g2000hsb.googlegrou ps.com...
Hi All,

I am wondering if the notion of interface is a C# thing or .NET thing.
In other words, is it supported at the language level, like C++'s
support of classes, or at the runtime level? Could anyone help?
The .NET runtime enforces the restriction of multiple inheritance to
interfaces.

>
Thanks,
gz

Oct 11 '07 #4
On Oct 11, 1:01 pm, gz <zyzhu2...@gmail.comwrote:
Hi All,

I am wondering if the notion of interface is a C# thing or .NET thing.
In other words, is it supported at the language level, like C++'s
support of classes, or at the runtime level? Could anyone help?

Thanks,
gz
Interfaces are an integral part of the common type system and so is
defined at level even lower than the runtime. Read the Common
Language Infrastructure specification (ECMA-335) for more information.

Oct 11 '07 #5
gz
On Oct 11, 3:01 pm, Brian Gideon <briangid...@yahoo.comwrote:
On Oct 11, 1:01 pm, gz <zyzhu2...@gmail.comwrote:
Hi All,
I am wondering if the notion of interface is a C# thing or .NET thing.
In other words, is it supported at the language level, like C++'s
support of classes, or at the runtime level? Could anyone help?
Thanks,
gz

Interfaces are an integral part of the common type system and so is
defined at level even lower than the runtime. Read the Common
Language Infrastructure specification (ECMA-335) for more information.
I see.

Thanks everyone for answering!

Oct 11 '07 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

9
by: Anon Email | last post by:
Hi people, I'm learning about header files in C++. The following is code from Bartosz Milewski: // Code const int maxStack = 16; class IStack
8
by: Ash | last post by:
Hello all, I am hoping this is the appropriate newsgroup for a C++ interface design question. I am trying to design an interface for a subscriber to register/deregister handlers for various...
20
by: Ole Hanson | last post by:
I am accessing my database through an interface, to allow future substitution of the physical datastore - hence I would like to declare in my Interface that my DAL-objects implementing the...
10
by: Brett | last post by:
I'm still trying to figure out concrete reasons to use one over the other. I understand the abstract class can have implementation in its methods and derived classes can only inherit one abstract...
12
by: you | last post by:
I may be just stupid, but I don't understand the point of using an Interface. I am going through a couple of books at the moment trying to teach myself a little vb.net. Just for the heck of...
1
by: Rich | last post by:
Hello, my project (vb2005) contains several classes that each produce lists of data which get stored/displayed in ado.net tables that have the same structure for each of the lists produced by...
0
by: YellowFin Announcements | last post by:
Introduction Usability and relevance have been identified as the major factors preventing mass adoption of Business Intelligence applications. What we have today are traditional BI tools that...
15
by: Xah Lee | last post by:
On Java's Interface Xah Lee, 20050223 In Java the language, there's this a keyword “interface”. In a functional language, a function can be specified by its name and parameter specs....
3
by: ewpatton | last post by:
Hi, I have written a DLL in C++.NET that contains a class inherited from a single abstraction: //------ IThing.h ------ #ifndef __ITHING_H__ #define __ITHING_H__ namespace DLLObject
9
by: Tony | last post by:
Hello! The keword abstract and sealed are not allowed in interfaces. I can understand that abstract is not allowed because an interface is completely abstract and contains no implementation. ...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, youll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shllpp 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.