Java Program

profilegeneral2698

 

Write a super class program called lastNameFirstNameInitialSuperPgm3 containing:
  a) methodOne   that accepts one int and can not be inherited displaying the
                 the int value received.
  b) methodTwo   that accepts two strings and displays I am super methodTwo   
  c) methodThree that accepts nothing and displays I am super methodThree   
  

2) Write a sub-class named lastNameFirstInitialSub1
  that inherets all methods from your super class in question 1 ( lastNameFirstNameInitialSuperPgm3 )


3) Write a sub-class program called lastNameFirstInitialSub2 containing
  all inheritable methods from your super class in question 1 ( lastNameFirstNameInitialSuperPgm3 )
  overloading methodTwo by displaying "Hello I am sub class Two"
    • 5 years ago
    • 40
    Answer(1)

    Purchase the answer to view it

    blurred-text
    NOT RATED
    • attachment
      Assignment.zip