/* Write a class called MakePerson with a main() method that instantiates 2 Person objects. Initialize the attributes of one of the Person objects by supplying parameters to it's constructor. Instantiate the other Person object with the defa
/* Create an abstract Auto class with fields for the car make and price. Include get and set methods for these fields; the setPrice() method is abstract. Create two suclasses for individual automobile makers (for example, Ford and Chevy)
/* Create an application DisplayNames that displays your name in every even-numbered font from size 4 to 24. Make the color red.*/import javax.swing.*;import java.awt.*;public class DisplayNames{ public static void main(String[] args) {
查閱了一些資料,實踐後,有如下結論: 假設有:A->B->java.lang.Object, 1. this 與 super 是完全不同了兩個關鍵字。this指的就是當前對象,而super行為比較怪異: Java codeclass A extends B{void foo(){this.getClass().getName();super.getClass().getName(); ((B)this).getClass().getName(); ((
呃。。。。代碼編輯壞了- -!/* * @(#)Main.java * Author: 88250 <DL88250@gmail.com>, http://blog.csdn.net/DL88250 * Created on May 13, 2008, 4:11:44 PM * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU