My question is about C# language If I have two classes one class called faculty
ID: 3714455 • Letter: M
Question
My question is about C# languageIf I have two classes one class called faculty and the other called course and which has the details of the course In this class there’s a constructor and this constructor contain the course details
In class faculty there’s a public array which name is schedule. And it’s not in any method
My question is how to load the courses in course class to the array in faculty class? My question is about C# language
If I have two classes one class called faculty and the other called course and which has the details of the course In this class there’s a constructor and this constructor contain the course details
In class faculty there’s a public array which name is schedule. And it’s not in any method
My question is how to load the courses in course class to the array in faculty class?
If I have two classes one class called faculty and the other called course and which has the details of the course In this class there’s a constructor and this constructor contain the course details
In class faculty there’s a public array which name is schedule. And it’s not in any method
My question is how to load the courses in course class to the array in faculty class?
Explanation / Answer
It is an one to one mapping question in oops programming
Just follow these steps.....you will get the answer for your requeriment:
1.create a course class....of data members as course name,description etc.....
2.create a faculty class .....of data members that you want and then imp thing is create a data member of type course as courses.
Ex : public Course courses;
And then while creating the faculty object just set the course object to the appropirate faculty.....it will work for sure try this.....
For you want breify....just see the one to one mapping in oops conscepts.
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.