Hi all,

I am studying c++ and there is an expression that i did not understand can someone please explain it to me ? It is declaration of a public class method. The expression is bool less_than(const Date &d) const . name of the class is Date.
Thank you,

Recommended Answers

All 2 Replies

What's the deal? It's just a declaration of a constant bool member function that takes as arg a constant reference to a Date object.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.