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]
