Defining methods
- Politechnika Śląska
- Computer Programming
Defining methods Inside class declaration class person { … void input() { cinageFNameLName; } // semicolon not required … }; a method defined inside a class declaration is inline by default outside of the class: - use the scope operator - by default, such method is not inline void person :: s...