answersLogoWhite

0

You can declare and implement a class within a class...

class abc {

...

class def {

...

}

}

The class def is scoped and known only within the context of abc. It is possible to declare instances of def as member variables of abc, however, for this to work correctly, they should be private, because methods of def, not even public methods, do not exist outside of the scope of abc.

User Avatar

Wiki User

14y ago

What else can I help you with?

Related Questions

What are the differences between structure and classes?

One of the differences between structure and classes socially is that structure is the organization of society, and classes are the stratification within that society. Think of it like a closet, and the different styles of clothes within the closet.


Which usually has within it a number of related classes?

Order


What does de las clases mean in Spanish?

From the classes, or of the classes, depending on context.


What does it mean for your pledge class to be called Alpha Gamma?

Being in the Alpha Gamma pledge class typically means that you are part of a specific group within a fraternity or sorority that is initiated together and shares a bond throughout their time in the organization. Alpha Gamma is a designation given to pledge classes within the Greek system to distinguish them from other classes.


What is global variable in java?

A local class is declared locally within a block of Java code.You can even have classes declared inside a method. such classes are called local classes.


What exactly are c.n.a classes?

C.N.A classes would be classes for someone who wants to become a Certified Nursing Assistant. These classes usually don't take long to complete and you can usually get a CNA license within 6 months.


Are there career training classes available for school counselors?

There are career training classes available for school counselors, usually within a school district. The counselor will probably have to pay for these classes themselves.


How many classes of ancestors are found within the Yoruba tradition?

In the Yoruba tradition, there are generally three classes of ancestors: Egun (recent ancestors), Orisha (deified ancestors), and Olodumare (the Supreme Being or the ultimate ancestor). These classes represent different levels of spiritual significance and influence within Yoruba cosmology.


Is it possible to take online classes within a criminal justice program?

Yes there are several online classes within a criminal justice program. They may cost a fee so make sure you check that out before you do it and get a great teacher.


What does a class bunker mean?

One who skips classes.


What do tengo dos clases mean?

"Tengo dos clases" means "I have two classes" in English.


What classes of coupons exist for food?

Your question is not very clear. What do you mean classes of coupon. You will have to resubmit as it makes no sense as it is.