What Do The Keyword Static And Const Signifyy?

Scholar Asked on April 21, 2018 in COMPUTER ENGINEERING.
Add Comment
2 Answer(s)

When a class member is declared to be of a static type, it means that the member is not an instance variable but a class variable. Such a member is accessed using Classname.Membername (as opposed to Object.Membername). Const is a keyword used in C++ to specify that an object’s value cannot be changed.

Scholar Answered on April 23, 2018.
Add Comment

When a class member is declared to be of a static type, it means that the member is not an instance variable but a class variable. Such a member is accessed using Classname.Membername (as opposed to Object.Membername). Const is a keyword used in C++ to specify that an object’s value cannot be changed.

Scholar Answered on April 23, 2018.
Add Comment

Your Answer

By posting your answer, you agree to the privacy policy and terms of service.