正在加载图片...
Object creation Object Name Class Name Argument Name of the objectve An instance of this class is No arguments are used are creating here created mainWindow new MainWindow More customer=new Customer() Examples Jon new Student( John Java) car new Vehicle(): C 2000 McGraw-Hill Introduction to Object-Oriented Programming with Java--Wu Chapter 2-8© 2000 McGraw-Hill Introduction to Object-Oriented Programming with Java--Wu Chapter 2 - 8 Object Creation Class Name An instance of this class is created. Object Name Name of the object we are creating here. mainWindow = new MainWindow ( ) ; Argument No arguments are used here. More Examples customer = new Customer( ); jon = new Student(“John Java” ); car1 = new Vehicle( );
<<向上翻页向下翻页>>
©2008-现在 cucdc.com 高等教育资讯网 版权所有