+ 5
Can we call methods in java as functions in c++???
5 Respostas
+ 9
So far I've observed a similarity in the syntax of function calls in C++ to calling static methods in Java, because I can call functions without using the dot notation. This is not to be confused with the meanings of concepts like static etc. I haven't reached OOP concepts in C++ yet, so I'm not sure how things will change when objects are introduced. Generally if you've used functions in either C++ or Java, then you'll be comfortable using them in the other.
+ 8
functions in java are methods as there inside a class
+ 3
oky....thnxx
+ 3
When you make class in c++ and make functions(methods) in this class you need to use dot operator or arrow operator if you use pointer to object.