Purchase Solution

Visual C++

Not what you're looking for?

Ask Custom Question

Give the class declaration

class point
{
public:
int xcoordinate();
int ycoordinate();
point(in initializeX, in initialize Y);
private:
int x;
int y;
};

1: Suppose we have a type declaration as follows:
enum status {on, off};

declare a class Pixel that inherits from class Point. Class Pixel will have an additional data member of type Status name Statustype; it has its own constructor that recieves three parameters.

2. write cleint statements that creates Pixel objects, FirstPixel with an initial (x,y) position of (5,9) and status OFF

3.Write client code to print out the current X and coordiantes and the status of the first pixel

4. Write the function definitions of the Pixel class constructor adn the CurrentStatus member functions.

Purchase this Solution

Purchase this Solution


Free BrainMass Quizzes
C# variables and classes

This quiz contains questions about C# classes and variables.

C++ Operators

This quiz tests a student's knowledge about C++ operators.

Word 2010: Tables

Have you never worked with Tables in Word 2010? Maybe it has been a while since you have used a Table in Word and you need to brush up on your skills. Several keywords and popular options are discussed as you go through this quiz.

Basic UNIX commands

Use this quiz to check your knowledge of a few common UNIX commands. The quiz covers some of the most essential UNIX commands and their basic usage. If you can pass this quiz then you are clearly on your way to becoming an effective UNIX command line user.

Basic Computer Terms

We use many basic terms like bit, pixel in our usual conversations about computers. Are we aware of what these mean? This little quiz is an attempt towards discovering that.