• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

about finalize()

 
robert chen
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,everyone.
How to use about finalize().
class A
class B
1.class B exends class A( B is a A )
2.class A include class B(A has a B)
what is the different about 1,2.
Please tell me.
Thanks.
 
Elouise Kivineva
Ranch Hand
Posts: 154
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If class B extends class A it is everything A is but has some other distinguishing features or abilities. As though you had a class MotorVehicle and class extending it such as Truck and Tractor.
If class B contains an A well, it has an A of it's very own. Like you have a class MotorVehicle that has as member data objects SteeringWheel mySteeringWheel and Engine myEngine.
[ December 27, 2003: Message edited by: Elouise Kivineva ]
 
Ernest Friedman-Hill
author and iconoclast
Marshal
Pie
Posts: 24208
35
Chrome Eclipse IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What does this have to do with the "finalize" method?
 
robert chen
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
ok.
Thanks for your help.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic