K Khang Lê New member Sep 20, 2021 #1 Which among the following can restrict class members to get inherited? A. Private B. Protected C. Public D. All three
Which among the following can restrict class members to get inherited? A. Private B. Protected C. Public D. All three
T Thành Đạt New member Sep 20, 2021 #2 Answer: a Explanation: Private members of a class can’t be inherited. These members can only be accessible from members of its own class only. It is used to secure the data. Upvote 0 Downvote
Answer: a Explanation: Private members of a class can’t be inherited. These members can only be accessible from members of its own class only. It is used to secure the data.