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
What Can an Applet Do? An applet can: • Draw pictures on a web page • Create a new window and draw in it. • Play sounds. • Receive input from the user by the keyboard or

Polymorphism - defines the ability of a single variable of a provided type to be used to reference objects of different types, and automatically call the method that is specific

I want Software Tool for Sequential Circuit Analysis The output of the program could be both graphical for the diagram and the rest is console. Skills required: C++ Progra

program t ofind area under the curve y=f(x) between x=a and x=b integrate y=f(x) between the limits a and b

list The Java Class Library? Java holds an extensive library of pre-written classes you can use in your programs. These classes are separated into groups known as packages. Th

Program 1. Write a Java program to display the first 20 Fibonacci numbers Program with Fibonacci sequence of first 20 terms Output 2. Write an applet progr

Implement a program that can compute your taxes (assume year 2012, as- sume a form 1040EZ). The form should ask for your ling status (single, married), income, deductions and cred

1. The spring container searches the bean's definition from the XML file and instantiates the bean. 2. Using the dependency injection, spring populates all of the properties as

RMI parameters : Primitive types are given by value. 2. References to remote objects are given as remote references that allow the client process to call methods on the rem

The formula for resistors linked in parallel is a little more complex. Given two resistors along with resistances R1 and R2 linked in parallel the equivalent resistance is given th