473,387 Members | 3,810 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,387 software developers and data experts.

Interfaces and abstract class

440 256MB
Hi,

Could anybody help me,whether we have interface and abstract class concepts available in Python.

If so,could you please provide me a sample piece of code for client and server side

Interface{

Method1()=0;
........
}

Class X(Interfaace){
Method1()
{
}

}

How to invoke this interfaces using Client and server interaction.

Currently Iam developing the application using Python.

Python GUI(client)->application(client).In future,I have to expose only interfaces ,so that I can use this interfaces to query the implementation locatedvin server side

The above example solution will really helps me.I will really appreciate if anybody help me in suggesting the solution.

Thanks in advance
PSB
Thanks in advance
PSB
Feb 25 '07 #1
3 2411
bartonc
6,596 Expert 4TB
Hi,

Could anybody help me,whether we have interface and abstract class concepts available in Python.

If so,could you please provide me a sample piece of code for client and server side

Interface{

Method1()=0;
........
}

Class X(Interfaace){
Method1()
{
}

}

How to invoke this interfaces using Client and server interaction.

Currently Iam developing the application using Python.

Python GUI(client)->application(client).In future,I have to expose only interfaces ,so that I can use this interfaces to query the implementation locatedvin server side

The above example solution will really helps me.I will really appreciate if anybody help me in suggesting the solution.

Thanks in advance
PSB
Thanks in advance
PSB
Abstract classed (no code implementation): Yes.
Interface declarations: No.
Feb 26 '07 #2
psbasha
440 256MB
Abstract classed (no code implementation): Yes.
Interface declarations: No.
Hi ,

We dont have sample code for the Interface and Abstract classes.Could you please help me for the links to understand the implementation of this using Python.

Thanks in advance
PSB
Feb 26 '07 #3
bartonc
6,596 Expert 4TB
Hi ,

We dont have sample code for the Interface and Abstract classes.Could you please help me for the links to understand the implementation of this using Python.

Thanks in advance
PSB
Python Tutorial 9. Classes
Feb 26 '07 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

8
by: Vishal Gandhi | last post by:
Hi , Please help me by advising an real life scenario where Abstract Classes should be used over Interfaces or vice versa . Whats the basic difference between Abstract Class and interface other...
12
by: Peter N Roth | last post by:
If i build a class in C#, i can declare a method abstract. If someone derives from this class, the abstract method must be overriden for the computation to succeed. ISTM that an Interface...
10
by: Michael Grimsley | last post by:
I have been looking at interfaces in C# and cannot seem to understand them. I am told that interfaces resembles a class with no code and that methods declared in an interface are not allowed to...
17
by: Picho | last post by:
Hi all, I popped up this question a while ago, and I thought it was worth checking again now... (maybe something has changed or something will change). I read this book about component...
30
by: Frank Rizzo | last post by:
We are having one of those religious debates at work: Interfaces vs Classes. My take is that Classes give you more flexibility. You can enforce a contract on the descendant classes by marking...
5
by: Michael McCarthy | last post by:
I want to develop plugin support for a system.montitor module I am working on. A lot of the modules will do mostly interop stuff for an older system, but I want to use it myself as well to monitor...
9
by: Sean Kirkpatrick | last post by:
To my eye, there doesn't seem to be a whole lot of difference between the two of them from a functional point of view. Can someone give me a good explanation of why one vs the other? Sean
6
by: Steve | last post by:
I am designing a new class hierarchy and I've already run into a bit of a bump in the road. I have this structure so far; class CodeGen class CodeGenHeader : CodeGen class CodeGenProtocolHeader...
18
by: abcd | last post by:
Can someone tell me whats the exact advantage of Interfaces in C#. To me abstract classes serves the purpose and have all good things then what is special about interfaces...can someone tell me...
5
by: =?Utf-8?B?UmljaA==?= | last post by:
Greetings, I am actually a VB.Net guy, but I have worked somewhat with C++ and C#. I just want to ask about the relationship between Abstract Classes and Interfaces. My first question is if...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.