can we make a class without any data member ? but it may have member functions !

can we make a class without any data member ? but it may have member functions ! in c++
Yes, but the only reason for the member functions to not be static is if you differentiated instances by their address. Or it could be a base class that other classes extend, which is more useful and more likely.
Last edited on
You may even to make an empty class.:)

class A {};
Last edited on
Topic archived. No new replies allowed.