| TIP: Click on subject to list as thread! | ANSI |
| echo: | |
|---|---|
| to: | |
| from: | |
| date: | |
| subject: | What`s wrong with this? |
AM>TM>private:
AM>TM> double x, y;
AM>TM>public:
AM>TM> double X() const { return x; }
AM>TM> double Y() const { return y; }
AM>What is the advantage of this? I mean, besides aesthetical
AM>considerations :-)
This allows another class to get the values of x and y without modifying
them.
--- FMail 0.92
#SLMR 2.1 # Back Up My Hard Drive? I Can't Find The Reverse Switch!
---------------
* Origin: The Programmer's Oasis on FIDONET! (1:348/203) |
|
| SOURCE: echomail via exec-pc | |
Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.