How to write C++ getters and setters Languages

How to write C++ getters and setters

If I need to write a setter and/or getter for a property I write it like this:However I have heard that this is the Java style of writing setters and getters and that I should write it in C++ style. Moreover I was told it is ineficient and even incorrect....
Read More