Professional Documents
Culture Documents
244(1)
244(1)
244(1)
SOURCE CODE:
//Name:SAITEJA
//Roll no-2211CS020244
//AIML-GAMMA
class Animal {
void walk() {
System.out.println("I am walking");
}
}
void sing() {
System.out.println("I am singing");
}
}
class Solution {
public static void main(String[] args) {
Bird bird = new Bird();
bird.walk();
bird.fly();
bird.sing();
}
}
EXECUTION: