c++ topic structure and class
Structures and classes differ in the following particulars: Structures are value types; classes are reference types. A variable of a structure type contains the structure's data, rather than containing a reference to the data as a class type does. Structures use stack allocation; classes use heap allocation.
Written for
- Institution
-
Air University
- Course
-
10EC665 (10EC665)
Document information
- Uploaded on
- September 14, 2022
- Number of pages
- 33
- Written in
- 2022/2023
- Type
- Presentation
- Person
- Unknown
Subjects
- oop
- stucture
- class
- class ppt
- complete details
- subject ppt
-
c
-
struct interface c
-
difference between class and structure in c