Determine the manner in which each of the provided concepts

Assignment Help C/C++ Programming
Reference no: EM13680705

Classes and Class Hierarchies:

C++ is a general-purpose programming language designed as an improvement to the C programming language. In short, the language is a super set of C. The most important feature of C++ is the concept of a class, which can be described as a user defined type.

The technical paper is based on the importance of classes and class hierarchies within C++. The intent of this paper is to provide you with an in-depth knowledge of the manner in which classes form the foundation of C++ programming.

Use the Internet to research the following seven (7) concepts of C++:

i. Classes

ii. Objects as instantiations of classes

iii. Abstraction

iv. Encapsulation

v. Inheritance

vi. Templates

vii. Containers

Next, consider the following advice that Bjarne Stroustrup, the creator of C++, provided to C++ programmers:

When you program, you create a concrete representation of the ideas in your solution to some problem. Let the structure of the program reflect those ideas as directly as possible:

i. If you can think of "it" as a separate idea, make it a class.

ii. If you can think of "it" as a separate entity, make it an object of some class.

iii. If two classes have a common interface, make that interface an abstract class.

iv. If the implementation of two classes has something significant in common, that commonality is a base class.

v. If a class is a container of objects, make it a template.

vi. If a function implements an algorithm for a container, make it a template function the algorithm for a family of containers.

vii. If a set of classes, templates, etc., are logically related, place them in a common namespace.

Write a five to seven (5-7) page paper in which you:

  1. Explain each of the seven (7) concepts of C++, and analyze the fundamental manner in which they each relate to C++ coding of programs.
  2. Provide a short code example of the use of C++ syntax within the context of an employee database.
  3. Determine the manner in which each of the provided concepts relates to the concept of object-oriented programming. Justify your response.     
  4. Explain each element of Bjarne Stroustrup's advice, and explore the primary manner in which each frames the object-oriented programming components into classes, objects, interfaces, templates, and containers.
  5. To help you understand this assignment further, an example may be useful. For example, in researching and writing on the subject of classes you would be expected to cover the following:
    • The ways in which classes are an improvement from the concept of structures in the C programming language.
    • The manner in which classes encapsulate (i.e., enclose) functions that are members of the classes (i.e., enclosed within the class) and variables (i.e., enclosed within the class). The fact that such members represent behavior and characteristics of the class.
    • The ways in which classes restrict access to the member functions and variables through the use of access specifiers such as private, protected, and public.

Reference no: EM13680705

Questions Cloud

Find whta the magnitude and direction of electrostatic force : A charge q1 = - 48.0 μC is placed at 0.6 meter on +x axis and the other charge q2 = 8.0 μC is placed at =0.3 meter on +y axis. Obtain the magnitude and direction of electrostatic force
Find what the rotational kinetic energy of a spherical shell : Find what is the rotational kinetic energy of a spherical shell of mass 9 kilogram and radius 0.01 meter, spinning at 60 rad/s
Obtain what is the mechanical energy lost due to friction : A sledge loaded with bricks has a total mass of 18.5 kilogram and is pulled at constant speed by a rope inclined at 20.0Â degree above the horizontal. Find what is the mechanical energy lost due to friction
Obtain the angular speed of merry- go-round after jump : A child (40 kilogram) stands on the edge of a stationary merry-go-round (uniform disk of radius 1.2 meter and mass 50 kilogram). Obtain the angular speed of merry- go-round after jump
Determine the manner in which each of the provided concepts : Provide a short code example of the use of C++ syntax within the context of an employee database and determine the manner in which each of the provided concepts relates to the concept of object-oriented programming.
Compute the electric potential difference between two points : If 4.25e-4 Joule of work is required to move 12.2e-6 C of charge from one point to another, compute the electric potential difference between two points
Find coefficient of kinetic friction between shelf and mass : A mass m1 on a horizontal shelf is attached by a thin string that passes over a frictionless pulley to a 2.5 kilogram mass (m2) that hangs over the side of the shelf 1.5 meter above the ground. Find the coefficient of kinetic friction between m1 an..
Evaluate the internal resistance of the battery : A 5.44-Ω resistor is connected across a 9 Volt battery. The voltage between the terminals of the battery is observed to be only 7.74 Volt. Evaluate the internal resistance of the battery
Calculate the volume of the liquid water : A cube of ice, 11 centimeter on each side, is melted into a measuring cup. Calculate the volume of the liquid water

Reviews

Write a Review

C/C++ Programming Questions & Answers

  Analyze a basic set of requirements for a problem

Create the main bank program. Note that you can create the main bank program in the main function or you can try to create another class for the main bank program.

  You have to develop a basic temperature classnbsp base

you have to develop a basic temperature class.nbsp base skeleton code and a simple driver have been provided for

  Compute the average of each row

Write a program that prompts the user to enter 15 double numbers from the keyboard and save them into a 3 by 5 array in the main ( ). Then call a user-define function to compute the average of each row and print the original matrix and average of ..

  Computing the standard deviation

Input Details: The scores are entered as numbers with or without decimal points. In response to the continuation prompts (described below) the user types a y or a Y to signify "continue" with any other character signifying "quit".

  Const int num_years

How do you get this program to get both player input and then display results(As described on bottom) #include  const int NUM_YEARS=15;//The number of years const int NAME_SIZE=32;//The max size of the player name string

  Reading of coefficients

Reading of coefficients a, b, c shall be done by a function named readCoeffs(). They shall be entered as double's from the keyboard by an operator, after prompt, as follows.

  Write a program that creates an arraylist

Write a program that creates an ArrayList and adds a Loan Object, a Date Object, a string, JFrame object, and a circle object to the list, and use a loop to display all the elements in the list by invoking the object's toString() method.

  Image text transcribed for accessibility

Image text transcribed for accessibility: write a program that requires the number of bits for the exponent and significant of a floating point representation, then requires two decimal real numbers and an operation,sum,subtraction or multiplic..

  C program that compare the time required

Write a C program that compare the time required to compute the product of two 10,000 x 10,000 matrices with and without optimization for locality.

  Nbspyou are to insert the missing code in the c program

nbspyou are to insert the missing code in the c program given for combinational equivalence checking. this program will

  Implement the vector class using inheritance

Is it better to implement the Vector class using inheritance (is-a relationship) or composition (has-a relationship). In other word, which one of the following gives a better implementation?

  Afunction that raises an integer to a positive integer

Write a function that raises an integer to a positive integer power. Call the function x_to_the_n, taking two integer arguments x and n.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd