What  is  static  member ?

No comments


A  class  member  designed  as  static  called  member.  Static  member  may  be  categorized  by :-

1.  Static data  member .
2.  Static member function.

1. STATIC DATA  MEMBER :  A  data  member  of  a  class  qualified  as  static,  called  data    A  static  data  member  has  following  characteristics.

1.   If is  initialize  to  zero (0)  when  the  first  object  of  its  class  is  No  other  initialization  is  permitted.

2.  Only one  copy  of  that  member  for  that  created  of  entered  class  and  the  shared  by  all  the  object  of  that calls.

3.  If is  visible  only  with  in  the  class  but  life  time  is  entre program.

2.STATIC MEMBER  FUNCTION  : A  member  function  qualified  at  static  and  has  the  following  property,  called  static  member  function  :-

1.   A static  member  function  can  access  only  other  static  function (function  or  variable)  declared  in  the  same class.

2.   A static  member  function  can  be  called  using  the  instate  of  the objects.

No comments :

Post a Comment

Subscribe

Milan Panda
Admin
About Me | Contact
Copyright 2023-2024 © Programming1011 . 🎀 Developed and Design By- Milan Panda. Happy Holi All Of You 🎀