---
title: "this与类名.this的区别"
author: "jiang5495"
date: "2010-10-20T18:29:14Z"
tags: []
categories: ["编程语言"]
slug: "this-this"
draft: false
lastmod: "2010-10-20T18:29:14Z"
id: 789829
url: "https://jiang5495.iteye.com/blog/789829"
---

this指的是当前正在访问这段代码的对象,当在内部类中使用this指的就是内部类的对象,
为了访问外层类对象,就可以使用外层类名.this来访问,一般也只在这种情况下使用这种
形式