Forum Stats

  • 3,722,782 Users
  • 2,244,412 Discussions


Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Create an java object with a method

User_99SIX Member Posts: 1 Green Ribbon

In the scenario of 2 classes, A and B. Can an object in class B call the constructor in class A using a method? I don't know what I am thinking applied to the real world. Thinking on a Ordering system analogically, A is Menu class and B is a Waiter class. Waiter should be add/remove/update menu item object dynamically right?

Sign In or Register to comment.