Question 17227 – NTA UGC NET JUNE-2023 Paper-2
May 13, 2024
Question 8123 – Database-Management-System
May 13, 2024
Question 17227 – NTA UGC NET JUNE-2023 Paper-2
May 13, 2024
Question 8123 – Database-Management-System
May 13, 2024

Question 3815 – UGC NET CS 2015 Jun- paper-2

Which of the following, in C++, is inherited in a derived class from base class ?

Correct Answer: C

Question 12 Explanation: 
Data members in C++, is inherited in a derived class from base class.
→ When creating a class, instead of writing completely new data members and member functions, the programmer can designate that the new class should inherit the members of an existing class. This existing class is called the base class, and the new class is referred to as the derived class.
→ A derived class can access all the non-private members of its base class. Thus base-class members that should not be accessible to the member functions of derived classes should be declared private in the base class.
A
constructor
B
destructor
C
data members
D
virtual methods
0 0 votes
Article Rating
Subscribe
Notify of
0 Comments
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x
error: Alert: Content selection is disabled!!