• Post Reply Bookmark Topic Watch Topic
  • New Topic

want to pass string and find record  RSS feed

Williams, Brian
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Here's my problem. I have an application which is supposed to have one abstract class for a student & pass along functionality to subclasses. I have created a Main class which successfully accepts user input by calling a keyboard class method. What I'm trying to do is link my string inputs to the abstract class, which will create the record in 1 of 3 subclasses (or so I hope), which can then be displayed or manipulated. I also can't seem to declare a method in class Main and call it within it. Also, I was told that I should create a class which will decide which subclass constructor (from my abstract class) to create based on the college entered in Main, but I don't know how to do this either. My abstract class constructor is like this: ST(String x, String y, String z), as is my subclass constructors. ***Lastly, I'd like to store the output from the strings and/or constructors into an array, and be able to find a record based on a name enetered.
Any suggestions are greatly appreciated. If anyone has an application that does something like this, I would love to see some example code. Here is some of my code below:

[Formatted code by Peter Tran]

[This message has been edited by Peter Tran (edited November 15, 2001).]
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!