请善解释疑点 [英] kindly explain the doubt line

查看:55
本文介绍了请善解释疑点的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

以下程序基于一个界面。

我打算项目--->添加类--->界面

<前lang = cs> interface Interface1
{
int add int x, int y);
}



next

project ---> add class

now



  class  Class1:interface1 
{
public int add int x, int y)
}



在表格中我带两个文本框和一个按钮。



我只声明 Class1 obj = new Class1()。我在这一行中对如何执行它有疑问。

 {
private 按钮 event
{
MessageBox.show

解决方案

这个问题毫无意义:它不会执行,甚至不会编译。

它可能是

 class1 myObject =  new  class1(); 





与此无关接口和问题的其他内容。我认为你应该回顾你的学习过程......在第一页附近。你在读一些手册,做简单的练习吗?优秀!现在进入课程章节的最开始。没有任何问题可能对你有所帮助。



-SA


The below program is based on an interface.
I am going to project--->add class--->interface

interface Interface1
{
int add(int x, int y);
}


next
project--->add class
now

class Class1 : interface1
{
    public int add(int x,int y)
}


In the form I am taking two text boxes and one button.

In that am declaring only Class1 obj=new Class1(). I have a doubt in this line about how it will excute.

{
private button event
{
MessageBox.show

解决方案

The question makes no sense: it won''t "execute", won''t even compile.
It could be

class1 myObject = new class1();



And it is irrelevant to interfaces and other content of the "question". I think you should rewind your learning process… somewhere near the very first page. Are you reading some manual, doing simple exercises? Excellent! Now go to the very beginning of the classes chapter. No questions could possibly help you more than that.

—SA


这篇关于请善解释疑点的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆