1. member function definitions are processed after the compiler processes all of the declarations in the class: 2. our only chance to initialize const or reference data members is in the constructor initializer , also a class type that doesnot have a…
Object类 知识点:掌握Object类的作用.掌握Object类中toString().equal()方法的作用 ,掌握Object接收引用数据类型的操作. 假设一个类在定义时没有明白指明继承哪个类,则默认继承Object类. 在java中全部的类都有一个公共的父类就是Object类,一个类仅仅要没有明显的继承一个类,则肯定就是Object的子类. 例如以下两种代码表示是一样的: class Person extends Object{} class Person{} class Demo…