Question

As the classes use the concept of data abstraction, they are known as: Abstract data types...

As the classes use the concept of data abstraction, they are known as:

  1. Abstract data types
  2. Abstract object types
  3. Null object types
  4. Null data types

10. A destructor is defined as following

  1. className ~( ) { }
  2. className ~ { }
  3. :: className ( ) { }
  4. ~className ( ) { }

Homework Answers

Answer #1

Q9) answer is option A

option A: data abstraction means providing only the essential details for the view and hiding behind the background details.

in C++ classes are providing great level of data abstraction.

Abstract data type is the type or class of objects whose implementation details are hidden, the set of operations to be performed are only explained. That is all background details are abstracted.

option B: there is no concept called abstract object type

option C: in javascript type of null is object, but in other languages null means nothing

option D: data type for null is not having any meaning because null means 0 it can be considered under many datatypes like, integer, float etc.

--------------------------------------------------------------------------------------------------------------

Q10) answer is option D

option A: is wrong definition of destructor

option B:is wrong definition of destructor

option C:is wrong definition of destructor

option D:

a destructor is a special class function

its used to destroy the object when this object goes out of scope.

when the object goes out of scope, the compiler automatically calls the destructor.

defining a constructor:

  • class name itself is used for the constructor
  • while defing a constructor, the classname is prefixed with a tilde (~) symbol.
  • as, ~ classname () { }
Know the answer?
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for?
Ask your own homework help question
Similar Questions
Shapes2D Write the following four classes to practice using an abstract class and polymorphism. Submit all...
Shapes2D Write the following four classes to practice using an abstract class and polymorphism. Submit all four classes. Shape2D class For this class, include just an abstract method name get2DArea() that returns a double. Rectangle2D class Make this class inherit from the Shape2D class. Have it store a length and a width as fields. Provide a constructor that takes two double arguments and uses them to set the fields. Note, the area of a rectangle is the length times the...
Which of the following is true about the characteristics of abstract data types? i) It creates...
Which of the following is true about the characteristics of abstract data types? i) It creates a type. AND ii) It contains a set of operations A) True, False B) False, True C) True, True D) False, False Explain ___________________________ is(are) not the component of an abstract data structure. A) Operations B) Storage Structures C) Algorithms D) None of above Explain
Please conceptualize child abuse (or another abstract concept of your choice). What indicators would you use...
Please conceptualize child abuse (or another abstract concept of your choice). What indicators would you use to measure the concept? Are there dimensions to the concept? Describe and explain your reasoning.
MUST WRITE IN C++ Objective: Learn how to design classes using abstract classes and inheritance Assignment:...
MUST WRITE IN C++ Objective: Learn how to design classes using abstract classes and inheritance Assignment: MUST WRITE IN C++ Objective: Learn how to design classes using abstract classes and inheritance Assignment: In cryptography, encryption is the process of encoding a message or information in such a way that only authorized parties can access it. In this lab you will write a program to decode a message that has been encrypted using two different encryption algorithms. Detailed specifications: Define an...
3. Explain the concept of Data Flow Diagram and also state the different types of flow...
3. Explain the concept of Data Flow Diagram and also state the different types of flow charts?
Lists are members of a general category of abstract data types (ADTs) called containers (i.e., objects...
Lists are members of a general category of abstract data types (ADTs) called containers (i.e., objects whose purpose is to hold other objects). A list is a collection of items having the following defining characteristics: Homogeneity: All the items are of the same type. Linearity: Each item has a unique predecessor (except the first) and a unique successor (except the last). Variable Length: The number of items can vary over time. Order: Items may be ordered (i.e., as in a...
1. Use the given minimum and maximum data entries, and the number of classes, to find...
1. Use the given minimum and maximum data entries, and the number of classes, to find the class width the lower limits and upper class limit. minimum= 10, Maximum=75, 6 Classes 2. Use the minimum as the first lower class limit and then find remaining lower class limits. 3. find upper class limits
1- Use inheritance to implement the following classes: A: A Car that is a Vehicle and...
1- Use inheritance to implement the following classes: A: A Car that is a Vehicle and has a name, a max_speed value and an instance variable called the number_of_cylinders in its engine. Add public methods to set and get the values of these variables. When a car is printed (using the toString method), its name, max_speed and number_of_cylinders are shown. B: An Airplane that is also a vehicle and has a name, a max_speed value and an instance variable called...
Java Programming COMP-228 LAB ASSIGNMENT #1 >> Apply the naming conventions for variables, methods, classes, and...
Java Programming COMP-228 LAB ASSIGNMENT #1 >> Apply the naming conventions for variables, methods, classes, and packages: - variable names start with a lowercase character for the first word and uppercase for every other word - classes start with an uppercase character of every word - packages use only lowercase characters - methods start with a lowercase character for the first word and uppercase for every other word Java Programming COMP-228 Exercise #1: [5 marks] Write a Java application using...
5. Why is it generally considered good practice to minimize coupling between classes? A) Low coupling...
5. Why is it generally considered good practice to minimize coupling between classes? A) Low coupling increases the operational efficiency of a program. B) High coupling implies less interface cohesion. C) High coupling increases program maintenance and hinders code reuse. D) Low coupling decreases the probability of code redundancy. - 6. Which of the following represents a good strategy regarding cohesion and coupling? A) Maximize cohesion and remove unnecessary coupling. B) Minimize cohesion and remove unnecessary coupling.. C) Maximize both...
ADVERTISEMENT
Need Online Homework Help?

Get Answers For Free
Most questions answered within 1 hours.

Ask a Question
ADVERTISEMENT