שאלה בJAVA
שלום . יש לי 2 מחלקות , אחת מחלקה סטנדרטית , השנייה מהווה interface זה בסגנון הבא :
שלום . יש לי 2 מחלקות , אחת מחלקה סטנדרטית , השנייה מהווה interface זה בסגנון הבא :
THE INTERFACE : interface x { int getNumber(); String[] getDescriptions1(); String[] getDescriptions2(); } THE CLASS : class a { public x getData() { // WHAT IS HERE? } }
אין לי מושג איך לבצע את ההשמה של המידע , כתוב לי בתרגיל משפט כזה :These structures will be filled and returned by the functions (like the 'x' interface) . The returned value will be static (will not change). A new value will be returned for each call to those functions
תודה מראש...