Avatar of srikanthradix
srikanthradixFlag for United States of America asked on

What is a functor in Java?

What is a functor? Can you please give me some simple example? If i don't use "Functors" in my project. Am i missing something? Where should i use functors?
Java

Avatar of undefined
Last Comment
CEHJ

8/22/2022 - Mon
CEHJ

There's no such thing. Do you mean 'function'?
ASKER
srikanthradix

functor - function object in java.
CEHJ

Java is an object-oriented language. An object has methods, not functions. These can be objects themselves (Method) via the java.lang.reflect package
All of life is about relationships, and EE has made a viirtual community a real community. It lifts everyone's boat
William Peck
humanonomics

If you are missing out on functors in Java, you don't know java well and you won't be using it the way it is supposed to be used.
ASKER
srikanthradix

@human...
I completely agree that I don't know Java well. That's the main reason i posted this question. I am pretty sure that i studied functors in data structures when i was in undergraduate. But i forgot everything and lost my material. May be need to ask my friends or something.
ASKER CERTIFIED SOLUTION
CEHJ

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
See how we're fighting big data
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question
SOLUTION
Log in to continue reading
Log In
Sign up - Free for 7 days
Get an unlimited membership to EE for less than $4 a week.
Unlimited question asking, solutions, articles and more.
CEHJ

:-)
Get an unlimited membership to EE for less than $4 a week.
Unlimited question asking, solutions, articles and more.