+ 1
Calling class as a function is possible or not in any of programming language.
5 ответов
+ 4
Well, if seems you have misunderstood the concept of classes. Classes are used to encapsulate relative data. We cannot call Class just as we do with function.
But yes if there is a function inside a class, then you can surely call that function, but not class.
+ 4
Pratik Mohite No it is not possible. There's no such thing like "calling a class", we generally call the "constructor" of the class to create an instance but we do not call the class.
+ 3
Pratik Mohite check mark my answer if that helped you😊
+ 1
I know about concept of classes but one of my friend say it is posible in c#
+ 1
Ok