first commit

This commit is contained in:
Jose Caban
2025-06-07 01:59:34 -04:00
commit 388ac241f0
3558 changed files with 9116289 additions and 0 deletions

25
CS1322/t3/Cat.java Normal file
View File

@@ -0,0 +1,25 @@
//test
public class Cat extends Animal{
public Cat(String name){
this.name = name;
}
public Cat(){
}
public void speak(){
System.out.println("Meow. My name is " + this.name);
}
public void nap(){
System.out.println("Taking a nap. Zzzzzz");
}
public String toString(){
return "I am an cat named " + this.name;
}
}