Skip to content

Creating your own classes

Griffin Taylor

Asked Mar 25, 2014, 3:40 PM EDT1 answer
Share
LinkedInX

Create a class representing a student. Include
characteristics such as student number, first and last name, overall GPA,
classification, and major. Write at least two constructors. Include properties
for each of the data items. Create a second class that instantiates the first
class with information about yourself. In the second class, create a class
method that displays your name and GPA.

1 Answer

Know the answer? Post it. Somebody with the same question will find it here.

  • 0
    I don't see a question in there.  Are you asking someone to write the code for you?  You're not going to learn how to do this by having someone else do it for you.

    There are lots of examples out there.  Take your best shot and if you still have trouble, post your code and what is giving you trouble.  Someone will come around to help.
    0