# Class Method and Private Method

**URL:** <https://discourse.processing.org/t/class-method-and-private-method/2798>\
**Category:** Coding Questions\
**Created:** [August 20, 2018, 6:56pm UTC](https://discourse.processing.org/t/class-method-and-private-method/2798 "2018-08-20T18:56:04Z")\
**Posts on this page:** 1\
**Showing post:** 8

<div class="post-metadata">

**Author:** ![GoToLoop](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/gotoloop/32/86_2.png) [@GoToLoop](https://discourse.processing.org/u/GoToLoop)\
**Post date:** [August 21, 2018, 4:14am UTC](https://discourse.processing.org/t/class-method-and-private-method/2798/8 "2018-08-21T04:14:42Z")

</div>

> [@Deeply-layered nested classes](https://discourse.processing.org/t/deeply-layered-nested-classes/805):
>
> Hello. I’m trying to make nested classes to make some sort of system in my classes. I am working insode Visual Studio Code, where you can hide lines of code. When I try: static class A{ static class B{ class C{ C(){} } } } A.B.C ins = new A.B.C(); it gives me an error: …\*\* No enclosing instance of type Test.A.B is accessible. Must qualify the allocation with an enclosing instance of type Test.A.B (e.g. x.new A() where x is an instance of Test.A.B).\* Whe…

---

_[View the full topic](https://discourse.processing.org/t/class-method-and-private-method/2798)._
