zoukankan      html  css  js  c++  java
  • 一道程序运行结果题

     class Car
        
    {
            
    private int iYear = 0;
            
    private string sName = "";
            
    public Car()
            


            }

            
    public Car(int year, string name)
            
    {
                Car oTemp 
    = new Car();
                Car oStructure 
    = new Car(oTemp);
                
    this.iYear = year;
                
    this.sName = name;
                Console.WriteLine(
    "Structureone");
                Console.WriteLine(
    this.iYear );
                Console.WriteLine(
    this.sName );
            }

            
    public Car(Car ocar)
            
    {
                
    this.iYear = ocar.iYear;
                
    this.sName = ocar.sName;
                Console.WriteLine(
    "Structuretwo");
                Console.WriteLine(
    this.iYear );
                Console.WriteLine(
    this.sName );
            }

       class Program
        
    {
            
    static void Main(string[] args)
            
    {
                Car oCarOne 
    = new Car(1983"Eagle");
                Car oCarTwo 
    = new Car(oCarOne);
                Console.Read() ;
            }

        }

  • 相关阅读:
    关于用Max导出Unity3D使用的FBX文件流程注解
    EffectManager
    Python Socket API 笔记
    UIScreenAdaptive
    CentOS 5 全功能WWW服务器搭建全教程 V3.0
    CentOS 6.4 图文安装教程(有些设置大部分教程没出现过)
    Django---分页器、中间件
    Django-form表单
    Django-认证系统
    Django——model基础
  • 原文地址:https://www.cnblogs.com/zencorn/p/1102273.html
Copyright © 2011-2022 走看看