Explain super class and sub class in java, JAVA Programming

1. In Java (and OOP), Inheritance includes the concept of super class that is parent class and sub class that is derived class. Explain What is a super class in Java? What is a sub or derived class in Java?

2. Code a simple class in JAVA classed "Student." Your class must consist of  the followings: •Variables (name, age, addressStreet, city, state, zip, country)

Setter and Getter methods

For Example:

public void setName(String name) {

this.name = name;

}

public String getName() {

return name;

}

Posted Date: 3/30/2013 2:15:16 AM | Location : United States







Related Discussions:- Explain super class and sub class in java, Assignment Help, Ask Question on Explain super class and sub class in java, Get Answer, Expert's Help, Explain super class and sub class in java Discussions

Write discussion on Explain super class and sub class in java
Your posts are moderated
Related Questions
Implement the Money class discussed in class. This class should represent a dollar and cents amount with 0-99 cents and the cents being the same sign as the dollars. The class shou

In JavaScript, what is event handling? What are the two categories of events? In java script we could capture events on do a few operation on the basis of which particular even

Write a program to explain do while loop in Java ? // This is the Hello program in Java class Hello { public static void main (String args[]) { int i = -1; do { if (

What is difference between Design and System Architecture? System Architecture : It is structure of a product or procedure. Design: It is begin of the procedure of devel

1. Inception : In the mean while the inception phase, you work out the business part for the project. You also will be creating a rough cost estimate and return on investment.

Authentication is basically an identification step. Functionality used for J2EE security: Principal : An entity that may be authenticated and identified. Principal n

Explain break statement in a loop ? A break statement exits a loop before an entry condition fails. For instance, in this variation on the CountWheat program an error messa

Explain java flow control ? if else else if while for do while switch case break continue goto is a reserved word.

The program: 2 classes one called Student, one called Grades Functional Requirements: Ask for how many students u need to enter the program must: prompt the user to enter the

1.) Write an application with two user transactions (login which includes viewAllStudents and viewStudent ) with full MVC architecture that displays the details of the selected