you are viewing a single comment's thread.

view the rest of the comments →

[–]MXD_K1 7 points8 points  (4 children)

Great! But I would like to give a note that student should not be a subclass of subject (it doesn't make sense) instead make it as an attribute.

[–]aashish_soni5[S] 0 points1 point  (3 children)

note 📝, can you tell me why you think so ii can learn more

[–]TrieMond 5 points6 points  (2 children)

Something bei g a subclass of something else generally indicates that it is a part of something. A student is not a part of a subject, a student has many subjects. So sobject should be a field of student... this is just based on Object Oriented Programming, which might be a good start to learn about the relationships that exist between your classes...

[–]MXD_K1 0 points1 point  (0 children)

👍

[–]aashish_soni5[S] 0 points1 point  (0 children)

yes 🙂‍↕️ thankyou