Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Classes x Classwork for AP CS X B NYE TENERELLI - Cox NYE TENERELLI - Unix Problerris - Practice- x C Computer Science y x
Classes x Classwork for AP CS X B NYE TENERELLI - Cox NYE TENERELLI - Unix Problerris - Practice- x C Computer Science y x + = 3 X E C Apps docs.google.com/document/d/150nC4oiv51 MP2WCKJdM9UoRc14F35iroLipsODb3Fo/edit FTC Coach & Team... Photoshop Portable... a Amazon.com Shop... Download your NA... TURNIN Share NYE TENERELLI - Copy of Unit 5 Lesson 2 Challenge 5-2 Student Class Worksheet File Edit View Insert Format Tools Add-ons Help Last edit was 5 days ago na A 100% Normal text - Arial - 12-BIVA E . 15 E 5 Editing - A Write a Student class with constructors. Use this worksheet to decide on the variable names and types for your instance variables, and all constructor and method headers. Once approved by your teacher, you will then enter these items plus all additional code for the Student class. 1. Think about what information you might want to store about each student. Choose 4 of those items and write down a variable name and variable type for each. These will be your instance variables. private int year, private String name, private String school; private int ID; 2. A. Write down the method header for the default constructor. public Studento) B. Write down a method header for a constructor with 1 or 2 parameters, receiving the most important information about a student. public Student(String namint year) name = nm; year = yr: C. Write down the method header for the constructor which will receive 4 parameters, one for each instance variable. public Student/String nmintvr String slintid DEL - 9 e O Type here to search RA 4:33 AM 19 1/29/20203
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started