zoukankan      html  css  js  c++  java
  • java内部类

    public class Outer {
        private int index = 100;

        public void func(final int a) {
            final int b = 0;//只有 fianl 才可以被函数里面的内部类访问
            class Middle {
                private int index = 101;
                class Inner {
                    private int index = 103;

                    void print() {
                        int index = 104;
                        System.out.println(index);
                        System.out.println(this.index);
                        System.out.println(Middle.this.index);
                        System.out.println(Outer.this.index);

                        System.out.println(a);
                        System.out.println(b);
                    }
                }
            }
        }
    }
  • 相关阅读:
    c++ ::和:
    c++ extern
    c++ cpp和hpp
    c++ include
    caffe调试
    caffe blob理解
    poj3126
    FFmpeg滤镜使用指南
    Android之Activity之间传递对象
    Server Tomcat v8.0 Server at localhost failed to start.
  • 原文地址:https://www.cnblogs.com/bayonetxxx/p/1728389.html
Copyright © 2011-2022 走看看