Home Tutorialhelp Comment how to implement class Person?

 
 

Comment

izah
how to implement class Person?,
January 30, 2010 at 6:38 AM

How to Implement a superclass Person. Make two classes, Student and Lecturer, that inherit from Person. A person has a name and year of birth. A student has a degree program and a lecturer has a salary. Write the class definitions for all classes. Each class must have a constructor and a toString() method that prints the related attributes. Also, write a program name TestQ2 that instantiates an object of each of these classes and invokes the toString() method of each of these object.

i don't know how to create toString method...please help me...
View All Comments
Advertisement
Related Tutorial and Articles
Programming Questions

Question-Answer Guidelines
 

Ajax Questions

share your answer to this question
 

Java Beginners

pls answer these question
 

Java Beginners

to know my answer
 

Java Beginners

i cNT GET ANSWER FOR THIS QUESTION
 

Flex Questions

Implement push
 

JSP Servlet Questions

Please , can any one answer this Question?
 

Flex Questions

Implement push
 

Interview Questions

Core Java Interview Question Page 3
 

Programming Questions

Question Answer
 

Java Beginners

Java question to implement polymorphism - Java Beginners
 

Programming Tutorials

Core Java Interview Question, Interview Question
 

Java Beginners

Clarify my last question's answer - Java Beginners
 

Java Beginners

Java experts.Please answer this question - Java Beginners
 

Programming Tutorials

Core Java Interview Question, Interview Question
 

General

Java Interview Questions - Page 6
 

Interview Questions

Core Java Interview Question Page 1
 

Programming Tutorials

Core Java Interview Question, Interview Question
 

Programming Tutorials

Core Java Interview Question, Interview Question
 

Programming Tutorials

Core Java Interview Question, Interview Question
 

Programming Tutorials

Core Java Interview Question, Interview Question
 

Java Beginners

question
 

Programming Tutorials

Core Java Interview Question, Interview Question
 

Java Beginners

What is the answer and how the program work?
 

Flex Questions

Implement Drag and drop
 

Java Beginners

question
 

Programming Tutorials

Core Java Interview Question, Interview Question
 

Java Beginners

Java Class Question?
 

Programming Tutorials

Core Java Interview Question, Interview Question
 

Java Beginners

Question?
 

Java Beginners

Class and method question, Java?
 

JDBC Questions

Question
 

JavaScript Questions

How can we implement Pop-up in JQuery without Plugin?
 

Java Beginners

question
 

Programming Tutorials

Core Java Interview Question, Interview Question
 

Programming Tutorials

Articles - Articles Submission Guidelines
 

JSP Servlet Questions

Plz send me answer quckly
 

Java-Tutorials

Java Interview Questions - Page 11
 

Java Beginners

how the answer is 13 can anyone explain plz
 

Java Beginners

java question
 

General

Java Interview Questions
 

Java Beginners

java: implement a class queue
 

Java-Tutorials

Implement the Queue in Java
 

Programming Tutorials

Core Java Interview Question, Interview Question
 

Java Beginners

How to implement a superclass Person? - Java Beginners
 

JSP Servlet Questions

hi,i'am new to Jsp.Can some one please let me know an answer for this question?
 

Java Interview Questions

java interview question and answer - Java Interview Questions
 

Programming Tutorials

Core Java Interview Question, Interview Question
 

Java Beginners

How to implement this superclass Person - Java Beginners
 

JSP Servlet Questions

send answer
 

Programming Tutorials

Core Java Interview Question, Interview Question
 

Programming Tutorials

Core Java Interview Question, Interview Question
 

Programming Tutorials

Core Java Interview Question, Interview Question
 

JSP Servlet Questions

How to implement session variables - JSP-Servlet
 

Java Beginners

java.please answer this...
 

Java Tips and Examples

Programming Style Guideline
 

Programming Tutorials

Core Java Interview Question, Interview Question
 

Java Technology Tutorials

Class
 

Programming Tutorials

Core Java Interview Question, Interview Question
 

Programming Tutorials

Core Java Interview Question, Interview Question
 

Programming Tutorials

Core Java Interview Question, Interview Question
 

Programming Tutorials

Core Java Interview Question, Interview Question
 

Java Beginners

give answer
 

Programming Tutorials

Core Java Interview Question, Interview Question
 

Programming Tutorials

Core Java Interview Question, Interview Question
 

Programming Tutorials

Implement Date Class
 

Ajax Questions

my answer
 

Programming Tutorials

Core Java Interview Question, Interview Question
 

General

Java Interview Questions 3
 

Programming Tutorials

Core Java Interview Question, Interview Question
 

Programming Tutorials

Core Java Interview Question, Interview Question
 

Programming Tutorials

Core Java Interview Question, Interview Question
 

General

Core Java Interview Questions!
 

Programming Tutorials

Implement Complex Number Class
 

Development process Questions

How can i implement the calculator programe in jsp code
 

Core Java

The implement keyword
 

General

Constructor Chaining Answer
 

Java Beginners

Question
 

Java-Tutorials

Java Interview Questions - Page 10
 

Programming Tutorials

Implementation of Day Class
 

JSP Servlet Questions

Urgent Answer Req
 

Java Beginners

question
 

Programming Tutorials

Core Java Interview Question, Interview Question
 

Java Beginners

This Question was UnComplete - Java Beginners
 

Java Beginners

please answer me
 

Spring Framework Questions

how to implement spring security - Spring
 

Java Interview Questions

java question
 

Java Beginners

How to implement FTP using java
 

Java Beginners

Implement the Serializable Interface
 

Java Beginners

question
 

Java Beginners

Is the answer 35, 35?
 

HTML Questions

question
 

Java Beginners

question
 

Java Beginners

question
 

Java Beginners

question
 

Java Beginners

question
 

Java Beginners

question
 

Java Beginners

question
 

Java Beginners

question
 

Java Beginners

question
 

Advertisements Advertisements
 

 

 

DMCA.com