Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

make node class static #54

Open
sarthak0050 opened this issue May 10, 2021 · 1 comment
Open

make node class static #54

sarthak0050 opened this issue May 10, 2021 · 1 comment

Comments

@sarthak0050
Copy link

class Node {

this exception is thrown by java compiler:
No enclosing instance of type Tree is accessible. Must qualify the allocation with an enclosing instance of type Tree (e.g. x.new A() where x is an instance of Tree).

@yoursmanjunad
Copy link

Hey, as far as I remember the concepts of OOPs, we are not allowed to use a constructor inside a class. With respect to that, in order to satisfy the OOPs concepts, we need to change our code entirely.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants