Logo 
Search:

Java Answers

Ask Question   UnAnswered
Home » Forum » Java       RSS Feeds
  Question Asked By: Hamish Jones   on Jul 04 In Java Category.

  
Question Answered By: Connie Wallace   on Jul 04

something like this,

class c1
{
class c2
{
public void printClassName()
{
c1 obj=new c1();
obj.printClassName();
}
}
public void printClassName()
{
System.out.println("Class 1");
}
public void accessingNewClass()
{
c2 obj=new c2();
obj.printClassName();
}
}

Share: 

 

This Question has 7 more answer(s). View Complete Question Thread

 
Didn't find what you were looking for? Find more on get reference to container class Or get search suggestion and latest updates.


Tagged: