Saturday, February 28, 2009

sample example to demonstrate has a relation



package oops;
class Engine
{
void m1()
{
.....
}
void m2()
{
.....
}
}
public class Car {
public static void main(String at[])
{
Engine a=new Engine();
a.m1();
a.m2();
}
}



0 comments:

Post a Comment