Introductory to object-oriented programmin UE Past Papers Questions.


View All Courses

(1302) Question Category: Short answers

Given the following Java abstract class , create a class called Alvin that will inherit this Chipmunk class and implement the abstract method speak(). Finally, create a class called DemoAbstract which contains the main method with an object called alvy that calls the method speak()

public abstract class Chipmunk{

  public void chipmunkName(String nameOfChipmunk){

     String name;

     name= nameOfChipmunk;

    System.out.println(“The name of chipmunk is “+name);

  }

public abstract void speak();

}

Answer / Solution

UNSOLVED

(1303) Question Category: Short answers

What is UML? State three advantages of using UML in modeling complex systems.

Answer / Solution

UNSOLVED

(1318) Question Category: Short answers

List at least 6 characteristics of Java programming language.

Answer / Solution

UNSOLVED

(1319) Question Category: Short answers

Briefly explain four types of Java variables.

Answer / Solution

UNSOLVED

(1320) Question Category: Practical

Write a Java program to compute renumeration of a worker per day. Assumethat the worker works only for 8 hours a dayand every hour is paid 5000Tshs.

Answer / Solution

UNSOLVED


View All Courses
News & Updates | Recently
Recent Updates
questions

2024-05-02: questions

Questions Uploaded on 2024-05-02


questions

2024-03-29: questions

Questions Uploaded on 2024-03-29


questions

2024-03-19: questions

Questions Uploaded on 2024-03-19

Dismissible in 10 seconds