How easy to impliment class in C-Lang

Hi everybody the most of the time I here something link we can impliment any thing with C-lang, that means we can write any kind of program with “C library”, even when I read Java books there I found some intresting, Java inherited many topics from C and C++ but still I don’t have any solid proof but I thought to atleast impliment a CLASS in the C-Lang so I started exploration how could I impliment the CLASS in C-Lang then I found the “Structure” concept, it is just looking like CLASS in the java then by using this concept I started implimenting CLASS in C-Lang, Here is the sample code for reference

/*
The simple class program made with structure in C-Language
Generally we don’t use member functions in the “C” Structures
*/

#include<stdio.h>
#include<conio.h>

struct math_operations{
int data;
void setData(int value){
data = value;
}
int sqrt(int data){
return (data * data);
}
}math;

void main(){
clrscr();
printf(”the result: %d”,math.sqrt(4));
getch();
}

So in the above program “math_operations” behaves like a class, actually in C language there is no member function concept but here “setData and sqrt” are the member functions of the math_operations and “math” is the math_operations’s object that’s why we are able to call the member functions with math object in the printf statement.

Actually still I have some confusion about how to bring the “INTERFACES and ABSTRACT” classes in my future post I will give more information about missing concepts