Question: Question 9 The statement static int x; means : Not yet answered Marked out of 1.00 O a. x is allocated for each object separately


Question 9 The statement static int x; means : Not yet answered Marked out of 1.00 O a. x is allocated for each object separately O b.x is common to a specific method O c. x is common to all the objects of a class O d. x is common to all the classes P Flag question Previous page Next page Question 7 Not yet answered Marked out of 1.00 P Flag question Let you have the following classes, and we define Emp e1(2000,1). To access the getDnoo: class Department { private int dno; public Department(int); int getDno0; }; class Emp { private: double salary; Department dept; public Emp( double, int); Department getDept(); }; O a. e1.getDept.getDno O b. e1.getDept()->getDno0 O c. e.getDno O d. e1.getDepto
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
