Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > it.comp.programmare > #80
| Newsgroups | it.comp.programmare |
|---|---|
| Date | 2018-05-21 20:45 -0700 |
| References | <bc247c74-d3f9-46f5-8e5d-a2ff3a579206@googlegroups.com> |
| Message-ID | <b01ce89c-6ac5-4466-8d9e-b78b25bcab30@googlegroups.com> (permalink) |
| Subject | Re: Overloading e incapsulamento |
| From | fmassei@gmail.com |
On Sunday, May 20, 2018 at 12:59:21 PM UTC-4, u2t4...@gmail.com wrote: > Salve, mi sto esercitando con alcuni quiz sul tema OOP e vorrei > sottoporvi due domande alle quali non ho saputo rispondere > correttamente. Ecco le domande: > > 1. Method with the same name or different return type and difference in > the parameters either in number or type is known as: > A. Function overloading > B. Compile Time Overloading > Questo dipende dal linguaggio, perché il concetto di sovraccarico in OOP non distingue tra compile-time e run-time. In C++ il compilatore codifica i nomi delle funzioni tenendo conto del tipo dei parametri e del ritorno, quindi avviene a compile-time. > 2. Information Hiding can also be termed as: > A. Data hiding > B. Encapsulation > C. Inheritance > > Voglio capire se sono io che sbaglio o l'autore del quiz, quindi ho > omesso le soluzioni. > Normalmente ci si riferisce all'encapsulation, perché mettere membri private/protected nasconde l'informazione all'esterno della classe. Ciao!
Back to it.comp.programmare | Previous | Next — Previous in thread | Next in thread | Find similar
Overloading e incapsulamento u2t4c6s8n@gmail.com - 2018-05-20 09:59 -0700
Re: Overloading e incapsulamento fmassei@gmail.com - 2018-05-21 20:45 -0700
Re: Overloading e incapsulamento fmassei@gmail.com - 2018-05-31 13:46 -0700
Re: Overloading e incapsulamento enoquick <enoquick@gmail.com> - 2018-06-04 00:06 -0500
Re: Overloading e incapsulamento fmassei@gmail.com - 2018-06-04 09:15 -0700
csiph-web