0% found this document useful (0 votes)
34 views1 page

Shape

This C++ header file defines color constants for a Shape class and declares two instance methods - printColor, which returns an NSString of the shape's color, and getArea, which returns the shape's area as an int. The Shape class inherits from NSObject and has a color property to store the shape's color integer.

Uploaded by

istv4n
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
34 views1 page

Shape

This C++ header file defines color constants for a Shape class and declares two instance methods - printColor, which returns an NSString of the shape's color, and getArea, which returns the shape's area as an int. The Shape class inherits from NSObject and has a color property to store the shape's color integer.

Uploaded by

istv4n
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 1

//

// Shape.h
// Hey
//
// Created by Istvan Szekely on 13/06/2017.
// Copyright © 2017 Istvan Szekely. All rights reserved.
//

#define RED 1
#define BLUE 2
#define GREEN 3

#import <Foundation/Foundation.h>

@interface Shape : NSObject

@property int color;

-(NSString *)printColor;
-(int)getArea;

@end

You might also like