Exented own classes | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Exented own classes

How can I referred to my own classes. I've created an abstract class in a file. And now I want to write a concrete class on this basis. How have I to create a package? Or import the clas?

6th Jun 2019, 5:32 AM
Newbie
Newbie - avatar
3 Answers
+ 6
public class ConcreteClass extends AbstractClass{ }
6th Jun 2019, 6:05 AM
D_Stark
D_Stark - avatar
0
Newbie you have posted copy of this thread, it has no value attached, so please remove it https://www.sololearn.com/Discuss/1831370/?ref=app
6th Jun 2019, 6:55 AM
Daljeet Singh
Daljeet Singh - avatar
0
Thanks D_Stark, When I do it, like you suggest I get the error, the AbstractClass not found. How I have to configure it, so that the file with the class ist found. I thought it would work with import. But witch path I have to enter. Just import AbstractClass does not work.
7th Jun 2019, 5:21 AM
Newbie
Newbie - avatar