English

Given below is a partial program code. Identify any error, if present. Also find the following in it: [Class name, Object name, Array, member data, data type] double balance;class Banker { short

Advertisements
Advertisements

Question

Given below is a partial program code. Identify any error, if present. Also find the following in it:

[Class name, Object name, Array, member data, data type]

class Banker
{
   short c_id;
   double balance;
   long phone_num;
}
Code Writing
Advertisements

Solution

Class Name : Banker

Member Data : c_id,balance,phone_num

shaalaa.com
  Is there an error in this question or solution?
Chapter 2: Class as the Basis of all Computation - Exercises [Page 66]

APPEARS IN

Rupa Pandit Computer Applications [English] Class 10 ICSE
Chapter 2 Class as the Basis of all Computation
Exercises | Q 5. (iv) | Page 66
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×