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
Imagemagick or same as text png/jpg generation expert needed Project Description: Require someone who is experienced with generating text images. You will use any of the soft

The project is optional. It is worth at least 7 bonus points beyond overall 100 points of this course. The grading will be on a pass/fail basis. Write a Java application (not ap

Task 1 Create a new project in Eclipse called Assignment 1. Within this project create a package called task01. 1/ Download the class Date (you must use this class - no

In JavaScript, what is event handling? What are the two types of events? In JavaScript capturing events and responding to them is event handling. The system sends events to the

a program to find the area under curve y=f(x) between x=a and x=b,integrate y=f(x) between the limits of a and b

Need to prepare 18 java questions - design patterns Project Description: Hello, I require a freelancer who will create java questions for oracle exams, see the attached sampl

In  order  to  provide  portable  and  reliable  EJB  elements,  the  following  restrictions  apply  to  EJB  code implementation: 1. Avoid using static non-final fields. Defin

Write a Java program called SalesInfoMiner that reads in a file of products, stored in text format (2 lines per entry). The program must then read in information about past sales t

I need Java Web Applications Development Project Description: MySQL databases, Oracle. SVN, GIT team collaborations. Skills required: Java, SQL, Software Architectur

This assignment is intended to write a simple program in Java and to use the concept of Object Oriented Technology. Open a project named "MyProject" in NetBean. Under this proje