⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 readme.txt

📁 objects first with java: a practical introduction using bluej 英国爱丁堡大学java教程源代码
💻 TXT
字号:
Project "picture"Authors: Michael Kolling and David J. BarnesThis project is part of the material for the book   Objects First with Java - A Practical Introduction using BlueJ   David J. Barnes and Michael Kolling   Pearson Education, 2002It is discussed in chapter 1.    This is a very simple project to demonstrate some characteristics ofobjects.You can create various shapes, and you will see, if you do, that thoseshapes are drawn on screen (in a window that we call the "canvas").You can then manipulate these objects: change their position, size and colour. Try it out: create a few different squares, triangles and circles.This project is designed as a first example of object-oriented programming.It illustrates a number of concepts: - a Java project (application) is a collection of classes - objects can be created from classes - from any one class, many objects may be created - objects have operations (methods) - operations can have parameters - parameters have types (at least String and int) - objects hold data (fields) - the operations and fields are common to all objects - the values stored in the fields can be different for each objectThe project also demonstrates - BlueJ object creation - interactive method invocation - parameter passingA good second project to look at after this is "picture", which adds a classto those ones in this project. That class (named "Picture") uses the shapesto draw a picture. It can be used to experiment with coding.Michael K鰈ling, July 2000

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -