Clase Locale

  • Uploaded by: Patrick Johnston
  • 0
  • 0
  • July 2020
  • PDF

This document was uploaded by user and they confirmed that they have the permission to share it. If you are author or own the copyright of this book, please report to us by using this DMCA report form. Report DMCA


Overview

Download & View Clase Locale as PDF for free.

More details

  • Words: 131
  • Pages: 1
Clase locale O clasa poate fi definita in interiorul unei functii. Ea este cunoscuta doar acelei functii si necunoscuta in afara ei. RESTRICTII: 1. toate functiile membre trebuie definite in interiorul declaratiei pentru class 2. nu are acces la variabilele locale ale functiei in care este declarata (cu exceptia variabilelor locale de tip static declarate in interiorul functiei) 3. nu se pot declara variabile de tip static in interiorul unei clase locale NOTA: Din cauza restrictiilor clasele locale nu sunt uzuale in programarea in C++. #include using namespace std; void f() { class C //definita local { int i; public: void init(int n) {i = n; } int da() {return i; } } ob; ob.init(10); cout<

Related Documents

Clase Locale
July 2020 11
Manifesto Locale
April 2020 21
Mezzogiorno Locale
November 2019 21
[mente Locale] Statuto
December 2019 17

More Documents from "Chandrashekar Hosakere Matt"