Concept of Qualified this in java | Techbirds


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 Onfacebook-1518846twitter-6742574linkedin-7040085google-6322509