Core Java

Sunday, January 31, 2016

ParentClass4

package inheritance;

public class ParentClass4 {
int a = 70;
int b = 50;

static int c = 60;
static double d = 60;

void test1(){
System.out.println(" I am from parent calss test1");
}

void test2(){
System.out.println(" I am from parent class test2");
}



}

Posted by Unknown at 6:32 AM
Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest

No comments:

Post a Comment

Newer Post Older Post Home
Subscribe to: Post Comments (Atom)

About Me

Unknown
View my complete profile

Blog Archive

  • ▼  2016 (54)
    • ►  February (16)
    • ▼  January (38)
      • TestAccessModifiersExample3
      • TestAccessModifiersExample2
      • TestAccessModifiersExample1
      • TestAccessModifiers
      • ChildClass6
      • ParentClass6
      • ChildCalss5
      • ParentClass5
      • ChildClass4
      • ParentClass4
      • ChildClass3
      • ParentClass3
      • ChildClass2
      • ParentClass2
      • ChileClass1
      • ParaentClass1
      • PrePostIncrementExample4
      • PrePostIncrementExample3
      • PrePostIncrementExample2
      • PrePostIncrementExample1
      • TestReturnTypeInJava
      • TestMethodOverLoading
      • TestMethodOverLoadingExample2
      • TestMethodOverLoadingExample1
      • DataTypeExample1
      • DataType
      • ThisUses
      • TestThisKeyword
      • TestThisinJava
      • TestConstructor1
      • TestConstructor
      • Test2
      • Test1
      • callMethodFromOtherClass
      • TestClassAndObject
      • TestMethod
      • TestSIBandIIB
      • TestObject
Simple theme. Powered by Blogger.