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
SCHOOL MANAGEMENT SYSTEM

Task - Defining a Student class The below illustration will explain how to write a class. We want to write a "Student" class which - should be able to store the below charac

PART1: Write a class with the header public class OrderedPair > implements Comparable > instance variables private Key x private Key y constructor publicOrd

The problem statement is pretty simple. We need a software implementation of a Point of Sale terminal at a typical store. The users of the system are the cashiers sitting at the sa

Support for Web and Enterprise Web Applications Java offers an extensive support for the development of web and enterprise applications Servlets, JSP, Applets, RMI, JDBC, EJBs

Explain about Drawing Lines? Drawing straight lines along with Java is easy. Just call g.drawLine(x1, y1, x2, y2) where (x1, y1) and (x2, y2) are the endpoints of your lines

Object-to-Relational (O/R) mapping : There are various ways to persist data and the persistence layer is one of the most important layers in any application development. O/R ma

Want an Android App to be Build What i want is a Taxi App for Android and if good price for iOS too. The App want to have a Website where to add Cars whit all information and


LookupDispatchAction is useful if the method name in the Action is not driven by its name in the front end, but by the Locale independent key into the resource bundle. As the key i