Concept of Qualified this in java | Techbirds
Posted on: September 4, 2017 /
Categories: Mobile Applications
class Envelope {
void x() { System.out.println(“Hello”);
}
class Enclosure
{
void x() { Envelope.this.x(); /* Qualified this*/ } } } class Manager { public static void main(String …arg) { new Envelope().new Enclosure().x(); }
}
346 total views, 1 views today
Share this On