Skip to content
Advertisement

Tag: class

Does a class without methods have a special name?

What is a class without methods called? I’m trying to understand and learn about classes, so i have the following class “Variables” that doesn’t have methods, only fields, like the field “Server” in a folder called “utilities”: then this class is called from a method in another class located in another folder or package this way: is this (the without

The object-oriented approach to a many-to-many relationship

I’m battling at the moment in trying to understand how to approach this issue in an object-oriented way. With a many-to-many relationship such as Students-Subjects, where each student gets a mark for a certain subject, assuming the following: I want to be able to display all the marks for a given student. I want to display all the marks from

Advertisement