Science, asked by ishugoswami0007, 3 months ago

A class has one data member and one method member. This class is used in a program that declares 10 objects of this class. The number of addresses for data member and method member are, respectively:

Answers

Answered by priyankakm429
0

Answer:

heres ur answer my child

Answered by SamikshaDhere
0

Answer:

10 and 1

Explanation:

Data member

  • Data Member is the term used for the members of a class.
  • It includes members that are declared with any of the fundamental types or other types like pointers, reference, array types, bit fields, or user defines types.
  • E.g.  Variables declared in any class using fundamental data types like int, char, float, etc.
  • E.g. Derived data type like structure, pointer, class, etc.

Types of Data members :

There are two types of data members.

  1. Private members : The members which are declared in private section of the class using private access modifier are Private data members.
  2. Public members : The members which are declared in public section of the class using public access modifier are public members.

Method Members

  • Member Method is the object type for each operation that you want an object of that type to be able to perform.
  • It provides an application with access to the data of an object instance.
  • Methods which belongs to the class are called as class methods or static methods.
  • Methods which belongs to the object instance are called as instance methods.
  • In function method, method returns a value
  • Whereas, in Procedure method, no value is returned.
  • They frequently method parameters to transfer data.
  • Method members are also called as class methods.

#SPJ3

Similar questions