0
Whats the need of package as we have absract class?
can any one explain please
5 Respuestas
0
A package is very different from an Abstract class.
A package is simply a place where we store the .java or the .class files. This helps the code find each class file when they look for it in the import and for organization reasons.
An abstract class is a .java or a .class file which has abstract methods meaning that they are to be inherited and be fully defined when they are inherited
hope this helps
happy coding
0
but package has abstract methods
0
similarly abstract class also has abstract methods na what's difference?
0
a package is not a class. i think you are thinking of an interface which contains ONLY abstract methods where as abstract classes can contain both abstract methods and defined methods that are to be inherited
0
thanks