JAVA OVERRIDING

/*you can say This is the condition of override…
1.The main condition “Must be has different class”
2.must be overloading
3.if and only if method name,return type and also parameter are same then occurs override.otherwise impossible to happen override
OK.Fine.now we can see a method override program….

class A
{
String name;
int i,j;
A()
{
System.out.println(“Hi!”);
}
A(String name) //A method overloading
{
System.out.println(“How are you…?”);
}

Remember please…method overloading and method overriding is a example of Polymorphism*/

Read More

JAVA CONSTRUCTOR & OVERLOADING

//This is the final code for example of all constructor ,method overloading,and how can create object..Can you help from this.i want,which i can i post all slowly slowly.you can give me any comments

class world //this is a class name
{
String name,add; //string type variable
int i,j,k,x,y,z; //int type variables
world() //this is a default constructor method
{
System.out.println(“Hi!This is saddam hossain rana.”);
}
world(String name) //this is a normal constructor method and happen overloading
{
System.out.println(“I am a student of Southeast University.”);
}

Read More

JAVA CONSTRUCTORS

//All constructor method and overloading programs….I think you help from here

public class constructors //class name declare here
{
String name; //String type variable declare
int i,j; //int type variable declare
constructors() //default constructor method because it has “no return type and “no parameter” and method name is “same the class name”
{
System.out.println(“\nDefault constructor method.”);
}
constructors(String name) //normal constructor method because it has a parameter and method name is the same of the class name
{
System.out.println(“\nNormal constructor method.”);
}

Read More

A PAINFUL INCIDENT OF MY LIFE

Life is full of incidents,here and there.There will be no such human being,who has not taste hardship in his life.Where there is a glimpse of happiness,sorrows will be followed by at least three times.In my life,there are more sorrows than happiness.I could never tell anybody about these,but today I’m going to share the most painful experience that i ever have in my life.

Read More