Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

How do I extend a class inside of a folder in the same package in NetbBeans IDE 8.2

I’ve created a default package xyz and within this package I have created a folder x so now there is a package by the name of xyz.x. Now in the main file of the regular package xyz I am trying to make it extend a class located inside of that folder xyz.x.

How do I do this? and How do I import that folder? I’ve already went to the Project properties, then libraries and under compiler, added a folder path to the folder I’ve just created.

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

>Solution :

If you created a project netbeans just use the project path to reach your desired Class:
enter image description here

package javaapplication5.xyz;

import javaapplication5.xyz.x.InsideX;

public class InsideXYZ extends InsideX {

}
Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading