The Artima Developer Community
Sponsored Link

Java Answers Forum
Parameters in class are objects from another class

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
    Next Topic
Flat View: This topic has 0 replies on 1 page
ios man

Posts: 1
Nickname: iosman123
Registered: Aug, 2019

Parameters in class are objects from another class Posted: Aug 22, 2019 9:13 AM
Reply to this message Reply
Advertisement
Hello,

If I have a class called Student which consists of a name and a grade as attributes and a separate class called Subject which receives Student as a parameter, how do I access the attributes of the Student in the Subject class.


thanks
iosman

    Next Topic Topic: Paperwork on the basics of Java.

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use