starting with todays practical work ill be uploading it one by one as i am weak in todays topics
1 inheritence--- just a basic one further ill be moving to its types
class base
{
void print()
{
int a=2,b=3,c;
c=a+b;
System.out.println(""+c);
}
}
class inherit extends base
{
void get()
{
}
}
class man
{
public static void main(String arg[])
{
inherit obj=new inherit();
obj.print();
}
}
1 inheritence--- just a basic one further ill be moving to its types
class base
{
void print()
{
int a=2,b=3,c;
c=a+b;
System.out.println(""+c);
}
}
class inherit extends base
{
void get()
{
}
}
class man
{
public static void main(String arg[])
{
inherit obj=new inherit();
obj.print();
}
}
No comments:
Post a Comment