Logo 
Search:

Java Answers

Ask Question   UnAnswered
Home » Forum » Java       RSS Feeds
  Question Asked By: Ayden Smith   on Nov 21 In Java Category.

  
Question Answered By: Cesara Fernandez   on Nov 21

I'm need something like this.
If i have a class

UserBean objUserBean = new UserBean();

--> UserBean has a getNumber() method

I need to work with it but in a general form like

Object obj = new UserBean();

--> i need obj.getNumber()

Some idea like the reflection, have any example to work with

Share: 

 

This Question has 1 more answer(s). View Complete Question Thread

 
Didn't find what you were looking for? Find more on calling constructor Or get search suggestion and latest updates.


Tagged: