Hi Nhat,Fernando,
Thanks a lot for your reply.
I was able to solve the problem, As said I was not following  the proper 
way. 
I tried to do it from scratch and I was able to run it 
Thanks a lot

    

On Saturday, November 16, 2013 6:02:38 PM UTC+4, Fernando wrote:
>
> Hello Joseph,
>
> Sorry for my english!,
> do you might exhibit the code of class Product.java and TV.java?
> The TV.java class of who inherits?
>
> Best Regards,
>
> Fernando
>
> El miércoles, 13 de noviembre de 2013 09:03:46 UTC-3, Joseph John escribió:
>>
>> Hi All 
>> I am finding problem in doing exercise no 10 in  LAB-1023 Java 
>> Inheritance 
>> I did create method "computeSpecialCustomerPrice()" in Product.java by 
>> ---
>> public double computeSpecialCustomerPrice(double compsp  ) {
>>            return 0;
>>     }
>>
>> ------------
>> And  in TV.java 
>> I  did 
>> ----
>>  public double computeSpecialCustomPrice(double sprice ){
>>          sprice = this.sprice;        
>>          sprice = computeSalePrice();
>>          sprice = sprice - 100;
>>          return sprice;
>>     }
>>
>> ----
>>  but always by sprice "sprice" value is returning '0'
>> Guidance and advice requested.
>>
>> Thanks 
>> Joseph John
>>
>>

-- 
You received this message because you are subscribed to the Google Groups 
"JPassion.com: Java Programming" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
Visit this group at http://groups.google.com/group/jpassion_java.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to