GradePack

    • Home
    • Blog
Skip to content
bg
bg
bg
bg

GradePack

The substitution principle defines that objects of a supercl…

The substitution principle defines that objects of a superclass shall be replaceable with objects of its subclasses without breaking the application. 

Read Details

Aggregation and Composition are not examples of an associati…

Aggregation and Composition are not examples of an association.

Read Details

A subclass may call an overridden superclass method by _____…

A subclass may call an overridden superclass method by __________.

Read Details

Which of the following are true about abstract class?

Which of the following are true about abstract class?

Read Details

What is an abstract method?

What is an abstract method?

Read Details

With your new found free time, you decide to write a Book. …

With your new found free time, you decide to write a Book.  Based on your research you determine that cookbooks are one of the most popular nonfiction genres.    Based on your research, you find that the best selling cookbooks follow the below pattern: Each Cookbook has between 5 to 12 Chapters Each Chapter must be defined as either a ‘FrenchCooking’,’ChineseCooking’,’TurkiskCooking’,’IndianCooking’, or ‘ItalianCooking’ Each Chapter should have (use) between 1 to 15 recipes Given the above description, select the best option that descripts the Cookbook pattern.

Read Details

Select the correct statement that will add a Student object…

Select the correct statement that will add a Student object to the Student array called classRoom in the second place of the array.     Student[] classRoom = new Student[10];

Read Details

Given the data definition classes below, add line(s) to the…

Given the data definition classes below, add line(s) to the implementation class HouseImplementation to demonstrate polymorphism.   1 public class House {2    public void setAddress(){}3    public double calculateCost(){}4 }   1 public class NewConstruction extends House {2    public double calculateCost(){}3    public void setMaterialList(String[] list){}4 }   1 public class HouseImplementation {2    public static void main (String[] args){3       // Lines will go here 4    }5 }

Read Details

Consider the following function prototype: double tryMe(doub…

Consider the following function prototype: double tryMe(double, double); Which of the following programming statements is valid and will not generate a compiler error?  You should assume that all variables, parameters, and even the function itself are all declared and defined correctly.

Read Details

If an exception thrown in a C++ program is not caught by our…

If an exception thrown in a C++ program is not caught by our program and it is thrown back to the Operating System (OS) by our running program’s main method, then the OS will do which of the following outcomes:

Read Details

Posts pagination

Newer posts 1 … 35,991 35,992 35,993 35,994 35,995 … 87,137 Older posts

GradePack

  • Privacy Policy
  • Terms of Service
Top