7 Topics

Member Avatar for
Member Avatar for sing1006

im new in objective c.i have come out with the getter and setter but not sure is correct or not. .h #import <UIKit/UIKit.h> @interface ViewController : UIViewController @property(nonatomic, retain) NSString *myText; @property(nonatomic, copy) NSNumber *opacity; @property(nonatomic, assign) id delegate; @end .m #import "ViewController.h" @interface ViewController () @end @implementation ViewController @synthesize …

0
166
Member Avatar for AndrewEPage

Just a thought that woke me up this morning. A means of providing 'property' type constructs in C++ classes similar to python properties. # Header # #ifndef _HXX_CPROP #define _HXX_CPROP /** * Helper class to connect a 'property' in a * c++ class to getter/setter methods * */ template<class T, …

Member Avatar for mrnutty
0
3K
Member Avatar for jay.zyzz

**Tic-Tac-Toe without a class** Write a modular program that allows two players to play a game of tic–tac-toe. Use a two-dimensional char array with 3 rows and 3 columns as the game board. Each element of the array should be initialized with an asterisk(*). The program should display the intial …

Member Avatar for jay.zyzz
0
9K
Member Avatar for km2011

i have problem about the output in this code, my output so only the index 0. how can i fix this. [code] public class d_2D { static double[][] d =new double[6][4]; static double[][] e= {{}, {0.0,0.6,0.0,0.0}, {0.0,0.2,0.5,0.1}, {0.0,0.2,0.5,0.4}, {0.0,0.2,0.5,0.7}, {0.0,0.0,0.0,0.9}}; static double[] avg= new double[4]; static double[] sum= new double[4]; …

Member Avatar for km2011
0
171
Member Avatar for JSS540

Hi, I have a jFrame with a couple of jLabels, designed in Netbeans so most of the code is generated. If I want to change the text of the label, I use .setText() inside my jFrame and it works great. Now here's the problem. If I just make a String …

Member Avatar for JamesCherrill
0
1K
Member Avatar for TrustyTony

This code is giving minimal change from real Python class to JavaMonster with every method having setter and getter not following the PEP8 naming but capitalizedWordsFormat. When instrunctor turns his head or if you put the code in your library, you can simply remove the setter/getter lines.

0
259
Member Avatar for Xufyan

Setter getter ..? what is this and what it does ? i searched over google but didn't find the suitable answer...!

Member Avatar for imtiyaz41
0
453

The End.