| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 780 人关注过本帖
标题:大家帮忙看我理解的对不对
取消只看楼主 加入收藏
yushengou
Rank: 1
等 级:新手上路
帖 子:401
专家分:0
注 册:2005-3-30
收藏
 问题点数:0 回复次数:2 
大家帮忙看我理解的对不对

using System;

class Constructor1App //定义一个名为Constructor1App的类 { Constructor1App() //创建一个构造器 { Console.WriteLine("[Constructor1App.Constructor1App]"+"I'm the constructor"); }

public static void Main() { Console.WriteLine("\n[Main] Instantiating a"+"Constructor1 object..."); Constructor1App app=new Constructor1App();//声明一个对象类型 Console.ReadLine(); } }

搜索更多相关主题的帖子: public 
2005-04-06 09:17
yushengou
Rank: 1
等 级:新手上路
帖 子:401
专家分:0
注 册:2005-3-30
收藏
得分:0 

再看一个 using System;

class BaseClass { public BaseClass()//定义一个构造器 { Console.WriteLine("[BaseClass.BaseClass]"+"Constructor called"); } }

class DerivedClass:BaseClass//这句话是什么意思??? { public DerivedClass()//定义另一个构造器 { Console.WriteLine("[DerivedClass.Derived]"+"Constructor called"); } } class DefaultInitializer { public static void Main() { Console.WriteLine("[Main] Instantiating a"+"DerivedClass object"); DerivedClass derived=new DerivedClass();//声明一个对象 Console.ReadLine(); } }


我是初学者,希望大家能多多帮助我 /bbs/showimg.asp?BoardID=34&filename=2005-4/200542294030151.gif" border="0" onload="if(this.width>screen.width*0.7) {this.resized=true; this.width=screen.width*0.7; this.alt='Click here to open new window\nCTRL+Mouse wheel to zoom in/out';}" onmouseover="if(this.width>screen.width*0.7) {this.resized=true; this.width=screen.width*0.7; this.style.cursor='hand'; this.alt='Click here to open new window\nCTRL+Mouse wheel to zoom in/out';}" onclick="if(!this.resized) {return true;} else {window.open('http://bbs./bbs/showimg.asp?BoardID=34&filename=2005-4/200542294030151.gif');}" onmousewheel="return imgzoom(this);" alt="" />
2005-04-06 09:35
yushengou
Rank: 1
等 级:新手上路
帖 子:401
专家分:0
注 册:2005-3-30
收藏
得分:0 
谢谢幻幻。嘎嘎。不介意我这样叫吧

我是初学者,希望大家能多多帮助我 /bbs/showimg.asp?BoardID=34&filename=2005-4/200542294030151.gif" border="0" onload="if(this.width>screen.width*0.7) {this.resized=true; this.width=screen.width*0.7; this.alt='Click here to open new window\nCTRL+Mouse wheel to zoom in/out';}" onmouseover="if(this.width>screen.width*0.7) {this.resized=true; this.width=screen.width*0.7; this.style.cursor='hand'; this.alt='Click here to open new window\nCTRL+Mouse wheel to zoom in/out';}" onclick="if(!this.resized) {return true;} else {window.open('http://bbs./bbs/showimg.asp?BoardID=34&filename=2005-4/200542294030151.gif');}" onmousewheel="return imgzoom(this);" alt="" />
2005-04-06 09:53
快速回复:大家帮忙看我理解的对不对
数据加载中...
 
   



关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.033753 second(s), 8 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved