Suppose you have a base class with a static data member balance, and 5 derived c
ID: 3843315 • Letter: S
Question
Suppose you have a base class with a static data member balance, and 5 derived classes. If the value of balance is changed in the base class, what happens to the value of balance in the 5 derived classes? a) nothing b) The values in derived classes changes also. c) can't be determined. if you attempt to open a file for sequential access, and the file doesn't exist, what happens? xist a) error b) file id created c) user is asked if file is to be created d) none of these class my data {string name;} Is name a) private, b) public, c) protected, or d) none of theseExplanation / Answer
35)(b) If the values are changes, we can see the effect in all class as they are not inhenrited by changed value can be seen. They remain with base class only but dereived class can access and get the updated / changed value
36) An error occurs if file does not exists , I am sure about it
37) By deafult members of class are private
=> name is private
Related Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.