are you paying me to do your homework?
Why is your main function in your class.


Thanks,
Tyler Littlefield
Web: tysdomain.com
email: [email protected]
My programs don't have bugs, they're called randomly added features.

  ----- Original Message ----- 
  From: mina 
  To: [email protected] 
  Sent: Friday, May 22, 2009 12:30 AM
  Subject: [c-prog] problem in inheritance





  hi.

  class Father // super class
  {
  ...
  }

  class Child : public Father // subclass 
  {
  ...
  void main(){
  Father f;
  Child ch;

  f = ch; // statement-1
  ch = f; // statement-2
  }
  which one of statements is valid?and what happend if these two statements is 
executed?
  tnx!



  

[Non-text portions of this message have been removed]

Reply via email to