Re: extending class that is not in a packed
From: Niki Iv (niki_iv_at_abv.bg)
Date: 10/04/04
- Next message: Edwin Martin: "Re: parse mime"
- Previous message: Erik Rosenbach: "parse mime"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Mon, 04 Oct 2004 06:55:26 GMT
How can I 'import' classes in java
This concept is new to me. Now I am using reflect to extend this class
but this obviously is not the best solution?
On Wed, 29 Sep 2004 21:00:24 -0400, "Hal Rosser"
<hmrosser@bellsouth.net> wrote:
>Import the class you want to extend
>
>"Niki Iv" <niki_iv@abv.bg> wrote in message
>news:jmpil05e733sk1fiemt4oq8p61c2t5q14b@4ax.com...
>> Hello all,
>> I have this problem.
>> I have a class that is not in a package
>> lets say
>>
>>
>> public class Class1 {
>> public Class1() {
>> ....
>> }
>> public void DoSomething(){
>> ....
>> }
>>
>> }
>>
>>
>> and class Class2 that is
>> package a;
>> class Class2{
>> public Class2() {
>> ....
>> }
>> public void DoSomething2(){
>> ....
>> }
>>
>> }
>>
>> My question is
>> How can Class2 extend Class1 since Class1 is not part of a package?
>> Regards
>> Niki
>
>
>---
>Outgoing mail is certified Virus Free.
>Checked by AVG anti-virus system (http://www.grisoft.com).
>Version: 6.0.770 / Virus Database: 517 - Release Date: 9/27/2004
>
- Next message: Edwin Martin: "Re: parse mime"
- Previous message: Erik Rosenbach: "parse mime"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|
|