Java to Python - how to??

K

ka_czor

Hello

I just start programing in Python.
I've got a qestion, how translate the example code writen in Java to
Python??


public class ConnectionManager {

public ConnectionManager() {
super();
}
public void sendAgent(Agent anAgent, WorkplaceAddress anAddress) {

}
}

bye
 
G

George Sakkis

Hello

I just start programing in Python.
I've got a qestion, how translate the example code writen in Java to
Python??


public class ConnectionManager {

public ConnectionManager() {
super();
}
public void sendAgent(Agent anAgent, WorkplaceAddress anAddress) {

}
}

bye


class ConnectionManager(object):

def __init__(self):
super(ConnectionManager,self).__init__()

def sendAgent(self, anAgent, anAddress):
pass


George
 
J

JZ

Dnia Mon, 13 Jun 2005 12:13:52 +0200, (e-mail address removed) napisa³(a):
I just start programing in Python.
I've got a qestion, how translate the example code writen in Java to
Python??


public class ConnectionManager {

public ConnectionManager() {
super();
}
public void sendAgent(Agent anAgent, WorkplaceAddress anAddress) {

}
}


class ConnectionManager:
def __init__(self):
pass
def sendAgent(anAgent, anAddress):
pass

or

class ConnectionManager(object):
def __init__(self):
super(ConnectionManager, self).__init__()
def sendAgent(anAgent, anAddress):
pass
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,763
Messages
2,569,563
Members
45,039
Latest member
CasimiraVa

Latest Threads

Top