1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
Snezhnost [94]
3 years ago
15

Create a program that has at least three classes. The class with main. A class that defines a Name (first name, middle name, and

last name). A class that defines a Person (name, gender, age, and salary). (You can add other classes if you want.) Then, define all setters and getters, constructors and toString methods. Then, create and attach a UML for the Person and Name classes. You do not need to create or attach a design tool for this assignment (other than the UMLs).
Computers and Technology
1 answer:
Bond [772]3 years ago
3 0

Answer:

See attached file for complete detailed code.

Explanation:

See attached file.

Download txt
You might be interested in
A key benefit of inheritance is Group of answer choices an object can have several types, it is type compatible with any of its
NARA [144]

Answer:

A key benefit of inheritance is: an object can have several types, it is type compatible with any of its super classes

Explanation:

  • Inheritance is one of the fundamental concepts of Object Oriented Programming.
  • Inheritance allows classes (derived classes) to inherit the methods and properties of a class (base class).
  • The class or classes that inherits the characteristics from another class is called a derived class, child class or sub class. Derived class can also has it own methods and attributes additionally.
  • The class whose methods and properties are inherited by the derived class or classes is called a base class, super class or a parent class.
  • Benefit of inheritance is that inheritance new objects can take properties of existing objects and an object can have many types.
  • Also a child class can inherit from more than one super classes which is called multiple inheritance.
  • Multiple inheritance allows a class to implement more than one abstract classes.
  • An object can have several types. These types can be of an object's own class and also other types which include all classes that a class inherits.
  • If a variable is declared to be the type of super class then value of that variable can refer to any instance that instantiated from any class that inherits that super class. This means that an object is type compatible with an of its super classes.
8 0
3 years ago
Hiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiii
Marianna [84]

Answer:

hello

Explanation:

how are you?

7 0
3 years ago
write a C program the prints out the size of variables with the following C data types- int, long, unsigned, long long, double,
Anit [1.1K]

<u>C program for finding size of different data types</u>

#include <stdio.h>

//driver function

int main()

{

   int a;  //declaring a of type int

   float b; //declaring b of type float

   double c; //declaring c of type double

   char d; //declaring d of type char

   long e; //declaring e of type long

   long long f; //declaring f of type longlong

   unsigned g; //declaring g of type unsigned

   // Sizeof operator is used to evaluate the size of a variable

printf(" int data type contains: %lu bytes\n",sizeof(a));/*Finding size of int */

printf("float data type contains : %lu bytes\n",sizeof(b));/*Finding size of float */

printf("double data type contains: %lu bytes\n",sizeof(c));/*Finding size of double */

printf("char data type contains: %lu byte\n",sizeof(d));/*Finding size of char */

printf("long data type contains: %lu byte\n",sizeof(e));/*Finding size of long*/ printf("longlong data type contains: %lu byte\n",sizeof(f));/*Finding size of longlong */

printf("unsigned data type contains: %lu byte\n",sizeof(g)); /*Finding size of unsigned */

   return 0;

}

<u>Output</u>

int data type contains: 4 bytes

float data type contains : 4 bytes

double data type contains: 8 bytes

char data type contains: 1 byte

long data type contains: 8 byte

longlong data type contains: 8 byte

unsigned data type contains: 4 byte

4 0
3 years ago
g Consider a disk queue with requests for I/O to blocks on cylinders 95, 120, 41, 122, 15, 142, 65, 167. The Shortest Seek Time
yawa3891 [41]

Answer:

follows are the solution to the given question:

Explanation:

Please find the image file for the SSTF scheduling algorithm.

Following are the requested order:

Request \ \ order :\\\\95\\120\\122\\142\\167\\65\\ 41\\15

Calculating the Total Head Movement:

= (100-95) + (120-95) + (122-120) + (142-122) + (167-142) + (167-65) + (65-41) + (41-15)\\\\= 5 + 25 + 2 + 20 + 25 + 102 + 24 + 26\\\\= 229

6 0
3 years ago
What was one of the first ways that health information technology (health IT) changed the way healthcare workers practice? A. Us
Elenna [48]

Answer: ....

Use of electronic health records (EHRs)

Explanation:

An Electronic Health Record (EHR) is an electronic version of a patients medical history, that is maintained by the provider over time, and may include all of the key administrative clinical data relevant to that persons care under a particular provider, including demographics, progress notes, problems, medications.

An electronic health record (EHR) is a digital version of a patient's paper chart. EHRs are real-time, patient-centered records that make information available instantly and securely to authorized users. An electronic health record is the systematized collection of patient and population electronically-stored health information in a digital format. These records can be shared across different health care settings.

6 0
3 years ago
Other questions:
  • Study the editorial cartoon Participation in Youth Sports Down by Dan Landgren Jr.
    6·2 answers
  • What are the main types of computer software?
    5·2 answers
  • Which device can be installed on the edge of your network to allow multiple remote users to connect securely to your internal en
    9·1 answer
  • Which characteristic describes the troposphere?
    10·1 answer
  • Which deployment tool will you use to deploy metadata from one organization to another organization?
    6·1 answer
  • A domain name is used to: *
    15·1 answer
  • Match the command to the use. Test connectivity to a remote computer Test DNS lookup View packets in a transmission Display the
    14·1 answer
  • Which of these is a Microsoft certification for system engineers
    7·1 answer
  • Click this link to view O*NET’s Tasks section for Farmworkers and Laborers, Crop.
    6·1 answer
  • Enlist few database you use often.
    12·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!