Panda.java

/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the edsitor.
 */
//package edu.nwmissouri.preethi04lab;
package edu.nwmissouri.animalList;

/**
 *
 * @author Preethi
 */
public class Panda extends Animal {

    /**
     * Panda constructor
     *
     * @param name - the name of this Panda
     */
    public Panda(String name) {
        super(name);
    }

    /**
     * speak overrides function in animal class
     */
    @Override
    public void speak() {
        System.out.println("Hi I am a " + this.name + "! I Squeak.. ");
    }
    /**
     * move overrides function in animal class
     */
    @Override
    public void move() {
        System.out.println("I am a lazy animal and love to roll on ground");
    }
    /**
     * function pandaType
     */
    public void pandaType(){
        String firstName = "RED";
        String lastName = "PANDA";
        
        System.out.println("There are 2 types of panda, RED panda ,BLACK-WHITE pandas....");
        String fullName = fullname(firstName,lastName);
       System.out.println("My full name is : "+fullName);

    }
    /**
     * 
     * @param fname
     * @param lname
     * @return 
     */
        public String fullname(String fname,String lname){
        return fname+lname;
    }
    
 /*    @Override
     public void looks() {
         System.out.println("Hi I am a " + this.name + "! i am black and white with fur..");
     }
     @Override
     public void eat() {
         System.out.println("I like eating bamboo!");
     }
*/
}