Which keyword is used to prevent a class from being inherited in C++11 and later?

Explanation:

final keyword prevents further inheritance of a class.

Explore more in Computer Science: