Which of the following is true concerning the following statement: class Manager extends Employee a. Manager is a concrete class and a superclass. b. Manager is a concrete class and a subclass. c. Manager is an abstract class and a superclass. d. Manager is an abstract class and a subclass
Q: Define a class named Document that contains a member variable of type stringnamed text that stores…
A: Given: Define a class named Document that contains a member variable of type stringnamed text that…
Q: CommissionEmployee which of the following is false? Select one: a. The keyword public…
A: Option c. Is answer The statement All the public and protected members of class…
Q: 0.If all the classes used parameterized constructors and no default constructor then _________ i…
A: Question 10. If all the classes used parameterized constructors and no default constructor then…
Q: Which of these is not a correct statement about abstract class? Every class containing abstract…
A: Option 3 is the answer
Q: main method Take the values at runtime using Scanner class Create an object for SCOPE class Invoke…
A: //class Personclass Person { String Name; int Age; String Address; //parameterized constructorpublic…
Q: Name all member functions of all classes visible through temp1 in the main function? Name all member…
A: A class is a blueprint for a certain logic. A class may be parent, child, derived, abstract,…
Q: T/F & Explanation Example Code Ch 09-2Assume that Poodle is a derived class of Dog and that Dog d =…
A: Given that, Example Code Ch 09-2Assume that Poodle is a derived class of Dog and that Dog d = new…
Q: Write a program which has an abstract class called Number having an integer data member. The class…
A: An abstract class is a feature in object-oriented programming in which it hides the implementation…
Q: 70. A constructor operation does which of the following? a. Creates a new instance of a class b.…
A: Given that, A constructor operation does which of the following? a. Creates a new instance of a…
Q: 1. Which SOLID principle would apply for the following statements? Justify your answer briefly. i.…
A: The question is on: which SOLID principle would apply for the following statements.
Q: QUESTION 17 Which of the following are incorrect? (Choose all that apply) A. You may declare a final…
A: Abstract class: In object-oriented programming a class which is declared with abstract keyword is…
Q: Define a class Book in C++, which has the following private data members: a) BookName b) BookAuthor…
A: The class contains private data members and public member functions. The functions are declared…
Q: If all the classes used parameterized constructors and no default constructor then _________ i The…
A: Correct option: ii
Q: create class employee with properties id, name, salary, write accessor, mutator & constructor…
A: PROGRAM INSTRUCTIONS: Define a class Employee. Declare three variables to store the employee id,…
Q: 6. Which class cannot be extended? A. final class B. public class C. abstract class D. None of the…
A: 6) final class 7) constructor 8) final class 9) one class inheriting from more super classes
Q: rite a class definition that creates a class called leverage with one private data member, crowbar,…
A: A class is an extensible program-code-format for making objects, giving beginning qualities to state…
Q: Define two class types: Student and Graduate, where Graduate inherits from St udent. Class Student…
A: Sample Response: //C++ programming language//Tested on CodeBlock IDE#include <iostream>using…
Q: Consider the following code snippet: public abstract class Employee { public abstract void…
A: IV) is the correct option. A concrete class is a subclass that provides an implementation…
Q: Assume the following Classes exist: Class A, B, C, D and E. Assume Class D is the child of Class A…
A: Answer : Protected access modifier is generally used in a parent child relationship.
Q: What is polymorphic data structure? Select one: a.It is a data structure which contains as the…
A: The java.util category library contains many assortment categories that profit of polymorphism and…
Q: 2. Create a class home with following data members, area (int), and cost as protected data member.…
A: Acquiring the base class properties and methods/functions to the child classes is called…
Q: a String expression to represent an object's state. a. toString () b. abstract c. super () d. this…
A: 14 Extends 13)public 12) this() 11 super() a) ToString()
Q: Create a Car class in C++.that has the following: The class should contain the attributes of color,…
A: Step 1 : Start Step 2 : Define the class Car and create the fields for the class as : color , make…
Q: te a program which has an abstract class called Number having an integer data member. The class…
A: Code: #include <iostream>#include <string>#include <math.h>using namespace…
Q: 13. A member of a class that is not associated with an instance of a class is known as A. final B.…
A: Required:
Q: Write the definitions of the member functions of the class calendarType (designed in Programming…
A: GIVEN: Write the definitions of the member functions of the class calendarType (designed in…
Q: Q#1: Write a C++ program with the following specifications Create two classes each with one private…
A: A class in C++ is the building block, that leads to Object-Oriented programming. It is a…
Q: Assume there is a class named Sushi implemented which overloads the > operator, by comparing a…
A: 1. In operator Overloading a. first value is the main object and second value will be…
Q: In this exercise, you will design a class memberType.a. Each object of memberType can hold the name…
A: Let us consider a C++ program for designing a Class Member-Type The Instructions given for designing…
Q: Which of the following best describes inheritance? A. Ability of a class to derive members…
A: According to the information given:- We have to choose the correct statement to describe…
Q: Design a class bookType that defines a book as a class. a. Each object of the class bookType will…
A: #include <iostream>#include <cstring>using namespace std; class bookType{private :…
Q: (Keeping mutables safe) Suggest a simple scheme for creating a new classSafeMember that would allow…
A: Mutable safe class or immutable class means after creating an object the value of it cannot be…
Q: C++ True or False (True → CAN be accessed, False → CANNOT be accessed) A public variable declared in…
A: There are multiple questions have been asked. Hence the answer is provided only for the first…
Q: 5. What term is used to describe the process by which objects of one class can link together and…
A: Inheritance :- it is used to describe the process by which objects of one class can link together…
Q: Consider a class Computer having Two fields (i.e. companyName, price) and A single function named…
A: Define a class. Use its constructor. Define a function for dynamic binding. Define another class…
Q: Solve the following C++ question I gave all the information below about the question please solve it…
A: Class is a user-defined data type that encapsulates the data members and member functions.…
Q: What is default access specifier for data members or member functions declared within a class…
A: option a. Protected In case of Protected access specifier Data members or member functions are…
Q: n C++ write the definition of the class professorType, inherited from the class personType, defined…
A: Answer: The class doctor Type which inherited from the class personType is as follows: class…
Q: An abstract class is which of the following? a. A class that has direct instances, but whose…
A: Please find the answer below :
Q: Class B { Public: Void b1(); Protected: Void b2(); }; Class A : public B { Public: Void a1();…
A: Ans a) The member function is as follows which is visible through temp1 : temp1 is an object of…
Q: In Java, which of the following is true about an abstract base class? no constructors should be…
A: An abstract class is a class which contains 0 or more abstract methods
Q: Write a program in the C++ language to create a class Rectangle with two member integer variables…
A: Write a program in the C++ language to create a class Rectangle with two member integer variables…
Q: Adhere to the following additional requirements: Each of the 6 classes will have exactly 2…
A: The following information has been provided for the question above: "Text format code" to copy and…
Q: Can a Derived class constructor pass values to the base class constructor? Implement the same using…
A: Yes we can pass values from derived class to base class by construor.
Q: Write a class Person that has attributes of id, name and address. It has a constructor to…
A: ⦁ Created class Person, which is a base class with the attributes id_p, name and address. ⦁ Using…
Q: State whether each of the statements that follows is True or False 2. A super class contains all…
A: 1. Constructors are inherited to subclass . 2. A super class contains all variables and methods…
Q: Question 17) A variable declared to be of one class can later reference an extended class of that…
A: Given that, 17) A variable declared to be of one class can later reference an extended of that…
Q: Define two class types: Student and Graduate, where Graduate inherits from Student. Class Student…
A: Code: #include <iostream>using namespace std;class Student{ protected: int id;…
91. | Which of the following is true concerning the following statement: class Manager extends Employee |
a. | Manager is a concrete class and a superclass. |
b. | Manager is a concrete class and a subclass. |
c. | Manager is an abstract class and a superclass. |
d. | Manager is an abstract class and a subclass. |
Trending now
This is a popular solution!
Step by step
Solved in 2 steps
- 4. Which of these is not a correct statement about abstract class? a. Every class containing abstract method must be declared abstract. b. Abstract class define only the structure of the class not its implementation c. Abstract class can be initiated by new operator d. Abstract class can be inheritedQUESTION 17 Which of the following are incorrect? (Choose all that apply) A. You may declare a final abstract class. B. The constructors in an abstract class should be protected. C. An abstract class contains constructors. OD. An interface may contain constructors. DE. The constructors in an abstract class are private.73. An abstract class is which of the following? a. A class that has direct instances, but whose descendants may have direct instances. b. A class that has no direct instances, but whose descendants may have direct instances. c. A class that has direct instances, but whose descendants may not have direct instances. d. A class that has no direct instances, but whose descendants may not have direct instances
- QUESTION 2 A protected member of a class may be directly accessed by methods of the same class methods of a subclass methods in the same package Any of these QUESTION 3 A subclass can directly access only public and private members of the superclass all members of the superclass only protected and private members of the superclass only public and protected members of the superclassa.) Write the definition of the default constructor of YClass so that the instance variables of YClasa are initialized to 0. b.) Write the definition of the default constructor of XClass so that the instance variable of XClass are initialized to 0. c.) Write the definition of the method two of YClass so that rhe instance variable a is initialized to the value of the first parameter of two, and the instance variable b is initialized to the value of the second parameter of two.5. Is it compulsory for a class, which has been declared as abstract, to have at least one abstract method?
- QUESTION 16 What must be true of a class with one abstract method? O The class must also implement the Iterable interface Any derived class must implement the method The abstract method must have the static modifier O The method cannot specify a return value QUESTION 17 Suppose we wanted to design a set of classes for a veterinarian's office. Our Customer class looks like this: public class Customer { Pet [] pets; } Select all the statements that are true Once the size of the pets array has been set, it cannot be changed Because we're using an array, all pets must be the same A customer must have at least one pet We also need to declare a Pet class QUESTION 18 What is the proper use of an enumeration? To define a set of ordered values To enforce the use of the Comparable interface O To define, or enumerate, the values returned by a Random object generator O To define the classes in an inheritance hierarchy1. A method stub is a) a short method b)a method with an abrupt end c)a method whose header has not yet been written d) a method whose statements have not yet been written 2 An abstract class can always be instantiated as an object can sometimes be instantiated as an object can often be instantiated as an object can never be instantiated as an object 3)When a derived class defines a member method that has the same name, parameters, and return type as a base class's method, the member method is said to overload the base class's method overreach the base class's method override the base class's method overshadow the base class's method 4. What would be the best code to print out all the elements of an array for (int i = 0 ; i <= arry.length ; i++ ) System.out.println(arry[i]); for (int i = 0 ; i < arry.length ; i++ ) System.out.println(arry[i]); for (int i…C++ Create a Human class with the following features: Each Human needs a name, an age, and some phrase that they say. Each Human needs appropriate getters and setters for all attributes. For every interaction with this human, increment the age by 1 year. Default constructor with no arguments. Constructor that takes the name, age, and phrase arguments\ Create a driver to demonstrate all of the features of your Human class. The driver is the only class with main().The driver must create a dynamic array of Human Objects of some user-defined size. This requires prompting the user for a number of Humans to create.Be sure to iterate through your array of Humans. Interact with every Human object. Demonstrate ALL features of the Human class.
- Fill in the blanks in the following table which describes the access levels in a derived class's members. i.e. State whether the member's access level is public, private, or protected - or, if it is not accessible! Class Access specifier Base Class Member Access Level Derived Class Member Access Level private public protected public private public protected protected private public protected private •. •. ..Make 3 choices. Which of the following are incorrect? Select 3 correct answer(s) An abstract class contains constructors. The constructors in an abstract class should be protected. The constructors in an abstract class are private. You may declare a final abstract class. An interface may contain constructors.If Class A inherits from Class B, we say that Class B is the subclass and Class A is the superclass. True False