Purchase Solution

C# Class Diagram with classes Student, Class, Course

Not what you're looking for?

Ask Custom Question

Create a class diagram (in Visual Studio 2008 C#) based on the following scenario: When constructing classes that will represent objects in a system, it is important to ensure the integrity of those objects and be able to define the types of relationships they will form with other objects.

Define three classes: a student class, a subject class, and a course class. The student class will contain the necessary properties, such as studentID, that will be properly encapsulated with public getters/setters (accessors/mutators) while keeping the internal variables private. Use the same encapsulation techniques on the course and subject classes. The subject class will define an Object-Oriented Programming course, and will inherit from the course class that will contain the behaviors and properties common to all subjects.

After correctly constructing or encapsulating these three classes, create an inheritance relationship between the subject and the course. A course has a student, so define a composition method for a course that allows it to add students.

Completed class diagram should show each object's encapsulated methods, the inheritance between subject and course, and the composition of students in courses.

Purchase this Solution

Solution Summary

The solution contains a class diagram and the generated C# class files with classes: Student, Class and Course.

Solution Preview

Please find attached the zipped C# 2008 project that contains ...

Purchase this Solution


Free BrainMass Quizzes
C++ Operators

This quiz tests a student's knowledge about C++ operators.

Java loops

This quiz checks your knowledge of for and while loops in Java. For and while loops are essential building blocks for all Java programs. Having a solid understanding of these constructs is critical for success in programming Java.

Basic UNIX commands

Use this quiz to check your knowledge of a few common UNIX commands. The quiz covers some of the most essential UNIX commands and their basic usage. If you can pass this quiz then you are clearly on your way to becoming an effective UNIX command line user.

Basic Computer Terms

We use many basic terms like bit, pixel in our usual conversations about computers. Are we aware of what these mean? This little quiz is an attempt towards discovering that.

Basic Networking Questions

This quiz consists of some basic networking questions.