Since C has the structure and the union as a completion. Why still C cant be an OOP programming language? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Since C has the structure and the union as a completion. Why still C cant be an OOP programming language?

There are similarities between initialization and method in other language that support OOP and structures and unions in C.

3rd Feb 2019, 8:30 PM
Yuvichi
Yuvichi - avatar
1 Answer
+ 1
In some ways it is. You can create a struct and functions that manipulate the data within the struct. The main difference is encapsulation. There are other minor differences too such as overloading.
3rd Feb 2019, 8:47 PM
Division by Zero