Hi All, According to LRM 2017:
An instance of a class (an object handle) can also be declared with the const keyword
I try to develop this program this
. but what can be other use case of declaring const handle apart from below?
1.) const handle must be newed() same time handle is declared and you can still change non-constant variables using const handle but not const variables declared inside class. while without const handle we can newed() it somewhere else too and other functionality remains same as of handle declared with const keyword.