Suppose that a class employeeType is derived from the class personType (see Example 10-10 in Chapter 10). Give examples of members-data and functions-that can be added to the class employeeType. Also write the definition of the class employeeType that you derived from the class personType, and the definitions of the member functions of this class.
Q: decimal has a function, but what is it? The hexade
A: Hexadecimal has a function, but what is it? The hexadecimal system has a lot to offer.
Q: What are DDR3 memory's two advantages over DDR2 memory?
A: Introduction DDR3 and DDR2 are two different kinds of Random Access Memories. DDR3 refers to the…
Q: Discuss the importance of HCI.
A: INTRODUCTION: Human-computer interaction (HCI) is a multidisciplinary field of study that focuses…
Q: Which algorithm design technique uses selection sort? Why?
A: Introduction: In computer, an algorithm is a collection of instructions used to solve a certain…
Q: i need a html code for a websi6 of restaurants . including all the necessary image files and links…
A: The question belongs to the HTML and CSS section of computer science
Q: Why isn't virtual memory used more commonly in embedded systems?
A: embedded systems, do not use virtual memory, because they require faster response time, or that…
Q: True or false, and please provide a short explanation for your response to the following questions:…
A: We need to find if the given statement is true or false.
Q: In computing, an application programming interface (API) is referred to as "programming language."…
A: Introduction: API stands for application programming interface (API) several software intermediaries…
Q: Describe the steps in adding outside-AS destination in a router’s forwarding table.
A:
Q: Problem : For values x=[ 0.5 :25] , plot yl=2 x +1 and y2= x+ 1. Use different colors and line…
A: Given :
Q: Which algorithm design technique uses selection sort? Why?
A: Greedy method Because We inserted a pointer at the beginning of the array in the first iteration.…
Q: Create a complete ER diagram to represent the data used by a library. The library provides books to…
A: The Answer is
Q: When ICMPv6 Neighbor Solicitations are issued, it seems that they are transmitted as a multicast…
A: Introduction: Internet Control Message Protocol Version 6: Neighbor discovery defines five different…
Q: do
A: Introduction: A page table is a data structure that the virtual memory system uses to record the…
Q: Write an essay in which you compare and contrast CPU Scheduling Algorith
A: CPU scheduling can be defined as the process where the CPU keeps the one process on hold until the…
Q: Embedded systems often rely on watchdog clocks for several reasons.
A: Introduction: An embedded system is a microcontroller or microprocessor-based system specifically…
Q: 0: An institution has four networks (30 hosts, 12 hosts, 16 hosts and 6 nosts) if the major network…
A: The given address is 192.168.100.89 This address belongs to class C where number of network bits is…
Q: Why was an alphanumeric number system referred to as a hexadecimal number system?
A: Introduction It is known as hexadecimal to refer to the numeral system that has a base of 16. As a…
Q: The distinction between restarting a service and reloading a service is explained below.
A: Introduction: The distinction between restarting and reloading a service is as follows, Let us first…
Q: In your opinion, what are ARM and core i3 architectures' main points of agreement and disagreement?
A: The Core i3 processor features integrated graphics. The Core i3 processor is capable of supporting…
Q: Web browsers and web servers may be more secure if they use a protocol such as SSL or TLS.
A: Introduction: To summaries, TLS and SSL are both protocols for authenticating and encrypting data…
Q: Accesses between various levels of the memory hierarchy are made faster by using buffers. Provide a…
A: introduction: Internal to a CPU, registers are the quickest form of memory. Cache is a sort of…
Q: Where's the Biggest One? We've already tried comparing 3 numbers to see the largest among a so let's…
A: I give the code in C++ along with output and code screenshot
Q: What other components can be changed to keep the same page size (and avoid rewriting the software)?…
A: Introduction: In the domains of information technology and computer science, a system is considered…
Q: In comparison to a graphical user interface, a command-line interface offers a number of advantages.…
A: We may communicate with software or devices using graphical icons in a Graphic User Interface (GUI).…
Q: Input data=[1,4,8,11,16,3,1,5] You need to sort given data which are using Insertion and Selection…
A: A Sorting Algorithm is utilized to adjust a given array or list elements as per an comparision…
Q: How crucial is it for computer scientists to have a fundamental understanding of the concepts of…
A: - We need to talk about the importance of boolean algebra for a computer scientist.
Q: n computing, an application programming interface (API) is referred to programming language." What…
A: Lets see the solution.
Q: What is distributed data processing, and how does it work, and what does it require are two…
A: INTRODUCTION: Here we need to tell what is distributed data processing, and how does it work.
Q: Kevin is looking for knowledge on two different subjects and wants to utilise a Boolean operator to…
A: In order to locate the necessary information, The AND boolean operator is used on two different…
Q: Character devices are usually faster in transmitting data than block devices. Is this statement true…
A: Block devices are nonvolatile mass storage devices whose information can be accessed in any order.
Q: When it comes to data transmission, character devices are often faster than block devices. What do…
A: The answer of this question is as follows:
Q: Without using arrays(to store the integers/digits) and built-in methods(in doing the reverse), write…
A: Find the required code in python as language not mentioned and output given as below :
Q: Q1/Explain briefly the difference between command window and workspace.
A: Workspaces refer to the grouping of windows on your desktop.
Q: demonstrate how companies can streamline the goal of risk management to optimise its benefit.
A: Risk management is the process of identifying, assessing and controlling threats to an…
Q: Write a simple python program which sums the integers from 1 to 10 using a for loop (and prints the…
A: We used the for loop to calculate the total of n numbers in the preceding example. First, we took a…
Q: What is the correct order for converting the source code into an executable file?
A: Source code the program code which is in high level language and this is in reader format. The…
Q: A graphical user interface or a command-line user interface is what you prefer? Why?
A: A command-line interface (CLI) is a text-based or command-based graphical user interface (UI) in…
Q: Are the SPEC CPU benchmarks designed to remedy the faults in the Whetstone, Dhrystone, and Linpack…
A: INTRODUCTION: BENCHMARK: A benchmark acts as a standard against which others can be measured or…
Q: Which compiler phase would give you an error notice if you attempted to add an integer to a…
A: Introduction: Compiler: It is a translator that converts programs written in a high-level language…
Q: When comparing embedded and general-purpose computers, what are the main differences?
A: Ans: The difference between comparing embedded and general purpose computers is: Embedded systems :…
Q: Character devices are usually faster in transmitting data than block devices. Is this statement true…
A: Introduction: Character devices are ones that are not buffered, whereas block devices are those that…
Q: In what way does the first compound notation differ from the other compound notations?
A: Introduction: An abbreviated expression is a set of visuals or symbols, letters, or shortened…
Q: For system development, what does it take to be a successful team member? How do you ensure…
A: The solution to the given question is: Introduction Creating new software from concept to completion…
Q: Write the correct statement to store value of “vb programming” to label button 5 Select one: a.…
A: In this question we have to answer the two question. One is the regarding VB programming Second is…
Q: Q1) Draw the ladder diagram for the logic circuits A&B А: A АВ в АВ + AB AB
A: The image of the circuit is of Exclusive-OR gate.
Q: A command-line interface or a graphical user interface? Why?
A: ANSWER:-
Q: Which algorithm design technique uses selection sort? Why?
A: Selection sort: selection sort is also called as in-place comparison sort. selection sort is known…
Q: What are some of the benefits and downsides of caching disc write operations, and how do they differ…
A: Introduction: The major benefit of caching, as well as the purpose, is to reduce the amount of…
Q: Based on direction and edge-weights there are four types of graphs. Give a practical example for…
A: We are going to learn 4 types of graphs and their real life examples. Please refer to the image for…
OOPs
In today's technology-driven world, computer programming skills are in high demand. The object-oriented programming (OOP) approach is very much useful while designing and maintaining software programs. Object-oriented programming (OOP) is a basic programming paradigm that almost every developer has used at some stage in their career.
Constructor
The easiest way to think of a constructor in object-oriented programming (OOP) languages is:
3
C++
Trending now
This is a popular solution!
Step by step
Solved in 6 steps with 6 images
- Suppose that a class employeeType is derived from the class personType. Give examples of members—data and functions— that can be added to the class employeeType. Also write the definition of the class employeeType that you derived from the class personType, and the definitions of the member functions of this class.Consider the following scenario of a class Person. A Person class has a Name, ID, Address and has functions of change the address and profile display. (Hint: Composition is not applied) Two classes are derived from this class person. 1) Student 2) Employee. The student class has a course number, classes attended, year (freshman=1, sophomore=2 and so on), and functions to change course and profile display. The employee class has a Date of joining and date of promotion. The employee class further has two child classes 1) Faculty 2) Admin. Faculty class has a course number, classes taught, Rank (AP, lecturer etc) and a function to display profile. Admin class has number of projects worked on and a display profile function. Answer the questions based on this scenario. Write main and construct objects of each class. Call class specific functions for each object to show how a function is called with each class’s object. Subject: object oriented programming Language:C++Consider the following scenario of a class Person. A Person class has a Name, ID, Address and has functions of change the address and profile display. (Hint: Composition is not applied) Two classes are derived from this class person. 1) Student 2) Employee. The student class has a course number, classes attended, year (freshman=1, sophomore=2 and so on), and functions to change course and profile display. The employee class has a Date of joining and date of promotion. The employee class further has two child classes 1) Faculty 2) Admin. Faculty class has a course number, classes taught, Rank (AP, lecturer etc) and a function to display profile. Admin class has number of projects worked on and a display profile function. Answer the question based on this scenario. Write main and construct objects of each class. Call class specific functions for each object to show how a function is called with each class’s object. Subject: object oriented programming Answer in C++
- Consider the following scenario of a class Person. A Person class has a Name, ID, Address and has functions of change the address and profile display. (Hint: Composition is not applied) Two classes are derived from this class person. 1) Student 2) Employee. The student class has a course number, classes attended, year (freshman=1, sophomore=2 and so on), and functions to change course and profile display. The employee class has a Date of joining and date of promotion. The employee class further has two child classes 1) Faculty 2) Admin. Faculty class has a course number, classes taught, Rank (AP, lecturer etc) and a function to display profile. Admin class has number of projects worked on and a display profile function. Answer the question based on this scenario. Question 3: Over-ride the function ‘display profile’ in the base class and derived class students to display all the attributes of both of the class. Subject: Object oriented programming Language:C++With appropriate examples, explain the features of static class members.Consider the following scenario of a class Person. A Person class has a Name, ID, Address and has functions of change the address and profile display. (Hint: Composition is not applied) Two classes are derived from this class person. 1) Student 2) Employee. The student class has a course number, classes attended, year (freshman=1, sophomore=2 and so on), and functions to change course and profile display. The employee class has a Date of joining and date of promotion. The employee class further has two child classes 1) Faculty 2) Admin. Faculty class has a course number, classes taught, Rank (AP, lecturer etc) and a function to display profile. Admin class has number of projects worked on and a display profile function. Answer the questions based on this scenario. Make the classes as mentioned above. Make appropriate constructors and functions. Choose access type wisely. Subject: object oriented programming Language:C++
- Consider the following scenario of a class Person. A Person class has a Name, ID, Address and has functions of change the address and profile display. (Hint: Composition is not applied) Two classes are derived from this class person. 1) Student 2) Employee. The student class has a course number, classes attended, year (freshman=1, sophomore=2 and so on), and functions to change course and profile display. The employee class has a Date of joining and date of promotion. The employee class further has two child classes 1) Faculty 2) Admin. Faculty class has a course number, classes taught, Rank (AP, lecturer etc) and a function to display profile. Admin class has number of projects worked on and a display profile function. Answer the question based on this scenario. Question 2: Write main and construct objects of each class. Call class specific functions for each object to show how a function is called with each class’s object. Subject: Object oriented programming Language:C++What is a polymorphic data structure, and how does it work? Choose one: a.It is a data structure that stores instances of the same classes as data. All classes that can be used for storing must have the same parent, and virtual methods are not allowed. b.It is a data structure that stores instances of the same classes as data. All classes that can be used to store data must have the same parent and must have virtual methods. c.It is a data structure that stores instances of the same classes as data. All classes that can be used to store data must have the same parent and can have virtual methods. d.It is a data structure that stores instances of several classes as data. All classes that may be used to store data must have the same parent and include virtual methods.Write a class Employee with attributes (employee_id, scale). The class contains member functions to input and show the attributes. Write a child class Manager that inherits Employee class. Child class has attributes of manager id and his depart. It also contains the member functions to input and show its attributes
- Write a class Teacher that contains the attribute teacher name, age and address. It also contains member function to input and display its attributes. Write another class Author that contains the attributes author name, address and number of books written by him. It also contains member functions to input and display its attributes. Write a third class Scholar that inherits both Teacher and Author classes. Test these classes from main() by creating of derived classes and testing functions in a way that clear concept of multiple Inheritance.So, what are "static members" of a class, exactly? To what extent and when may you benefit from them?Example 10-10 defined a class personType to store the name of a person. The member functions that we included merely print the name and set the name of a person. Redefine the class personType so that, in addition to what the existing class does, you can: Set the first name only. Set the last name only. Store and set the middle name. Check whether a given first name is the same as the first name of this person. Check whether a given last name is the same as the last name of this person.