首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >在TcpClient处理库中扩展oscP5类

在TcpClient处理库中扩展oscP5类
EN

Stack Overflow用户
提问于 2011-04-07 12:20:21
回答 1查看 646关注 0票数 0

我正在尝试扩展oscP5库中的oscP5类以进行处理。我已经在我的主要草图中导入了netP5.*和sketch 5.*。但是,下面的代码会产生这个错误:expecting TRIPLE_DOT,found ',。我扩展它的方式有什么问题?我应该在构造函数中添加所有这些参数吗?

代码语言:javascript
复制
class GameClient extends netP5.TcpClient {
int score;
//some more variables

public TcpClient(Object theObject, String, theAddress, int thePort) {
//This is the constructor.
}

//I want to override this function
public void dispose() {
  println("dispose() called.");
}

}

谢谢你的帮助。

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2011-06-08 11:57:52

请看你的例子:

公共TcpClient(Object theObject,String,theAddress,int thePort) {

StringtheAddress之间有一个逗号,它不属于那里。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/5580920

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档