Java Answers Forum - Parameters in class are objects from another class
The Artima Developer Community
Articles
|
News
|
Weblogs
|
Books
|
Forums
Artima Forums
|
Articles
|
Weblogs
|
Java Answers
|
News
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
AltStyle
によって変換されたページ
(->オリジナル)
/
アドレス:
モード:
デフォルト
音声ブラウザ
ルビ付き
配色反転
文字拡大
モバイル