Question
Easy

In context of C++, which of the following is valid statement ?

1
Friend function of class is always a member function of that class.
2
Value of static data member cannot be manipulated once assigned.
3
Static data member of a class can be accessed only by static member function of that class.
4
Keywords private, protected and public may appear in any order and any number of times in a class.
Question Details
Time to Solve: 12
Exam: HTET
Level/Paper: Level 3
Chapter: Object-Oriented Programming (C++)
Topic: Advanced Class Concepts
Correct Answer
Option D
Explanation

The correct option is (4): The statement that "Keywords private, protected and public may appear in any order and any number of times in a class" is absolutely valid in C++ programming. These access specifiers serve as labels to divide the class definition into sections, controlling the visibility of the members declared after them until the next specifier or the end of the class is reached. A programmer might need…Read More

In context of c - HTET Level 3 | Clear Cutoff