Interfaces and abstract class

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • psbasha
    Contributor
    • Feb 2007
    • 440

    #1

    Interfaces and abstract class

    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(cl ient).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
  • bartonc
    Recognized Expert Expert
    • Sep 2006
    • 6478

    #2
    Originally posted by psbasha
    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(cl ient).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.

    Comment

    • psbasha
      Contributor
      • Feb 2007
      • 440

      #3
      Originally posted by bartonc
      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

      Comment

      • bartonc
        Recognized Expert Expert
        • Sep 2006
        • 6478

        #4
        Originally posted by psbasha
        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

        Comment

        Working...