Science, asked by binaray736, 5 months ago

what is Data Members and Methods ?​

Answers

Answered by Dadprince11
3

Explanation:

3. Introduction  Data Members: O The variables declared inside the class are known as data members. O Data members may be private or public.  Member functions: O The functions declared inside the class are known as member functions. O Member functions are methods or functions that are defined inside of objects.

mark me as brilliant ☆☆

Answered by BRAINhunter2020
2

Data Members:

  • The variables declared inside the class areknown as data members. O
  • Data members may be private or public.

Member functions:

  • The functions declared inside the class are known as member functions.
  • Member functions are methods or functions that are defined inside of objects.

Hope it helps ☺️

Similar questions