- Information
- AI Chat
Was this document helpful?
Acsse CSC1B 2022 P0 Solution
Course: Computer Science (CSC1B)
103 Documents
Students shared 103 documents in this course
University: University of Johannesburg
Was this document helpful?
1 #ifndef PRIME_H
2 #define PRIME_H
3
4 namespace PrimeSpace{
5 // C-style record structure representing a pseudo-class.
6 struct Prime{
7 // Member variable
8 int intArgument;
9 // Function pointer
10 bool (*isPrime)(Prime* objThis);
11 };
12 // "Constructor" function
13 Prime* createPrime(int intArgument);
14 // "Destructor" function
15 void destroyPrime(Prime*& objPrime);
16 }
17
18
19 #endif // PRIME_H
20