Giter Club home page Giter Club logo

year-11-cs-unit-7-tutorial-classsection's Introduction

Year-11-CS-Unit-7-Tutorial-ClassSection

Your job is to create two classes called ClassSection and Student. You should pass all of the tests in the ClassSectionTester class.

image

Each Student object that is created will be assigned a unique id number that corresponds to the number of Student objects that currently exist upon the creation of the Student object. That is to say, the first Student object that is created will have id 1, the second Student object that is created will have id 2, …, the nth Student object that is created will have id n.

The equals method will take a Student reference as a parameter and check to see whether this Student object is identical to the one that the method is being invoked upon. For example …

Student student1 = new Student("Sylvia", "Tseng", 16, 11); Student student2 = new Student("Sylvia", "Tseng", 16, 11);

student1.equals(student2); // returns true

image

The addStudent(), removeStudent(), and isStudentEnrolled() methods will take a Student object as a parameter.

The isStudentEnrolled() method will check to see if an identical student already exists in the class section and returns a boolean value.

Goodluck, have fun! :)

year-11-cs-unit-7-tutorial-classsection's People

Contributors

techarenz avatar nickfinbo avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.