14 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for can-mohan

Hi guys, I would like to discuss my design with one query. below is the code snippet. It is clear from below code snippet that class pd is privately derived from AbstractClass as both are different classes and there is no relation between them.Now in my class pd i need …

Member Avatar for can-mohan
0
408
Member Avatar for Sphinx'LostNose

How are keys and passwords stored in a computer to make them secure? If encryption is used to secure keys and passwords - won't there need to be a key or password for it also? Will that one be encrypted as well? It seems to me that eventually there will …

Member Avatar for mike_2000_17
0
279
Member Avatar for XerX

Hi, I am having a problem overriding methods in a subclass when they contain private methods from the master class. The is the master: package blabla; public class Person { private String firstName; private String secondName; private String familyName; public Person() { firstName = ""; secondName = ""; familyName = …

Member Avatar for JamesCherrill
0
234
Member Avatar for eburlea

Hello. The code below returns an error. Please advise what is wrong with it. Thank you. class Login { private var $good_username; private var $good_password; public function Authentification () { private $this->good_username = "myusername"; private $this->good_password = "mypassword"; } }

Member Avatar for eburlea
0
318
Member Avatar for rahul.ch

General rules is that: 1) A private method cannot be overridden. 2) Subclass method should be a lower access modifier than a overridden superclass method. But the output of the program is "I am Son". Why? Is it because of the rule 2 the output comes? If that's the case …

Member Avatar for JamesCherrill
0
202
Member Avatar for Philippe.Lahaie

I totally understand this is probably not what it was actually called but i dont recall, what I am looking for is the page where you would see some info on reputation changes and post statistics and other stuff, but it was not the public profile that other users can …

Member Avatar for Dani
0
253
Member Avatar for greatman05

So, I'm a bit confused with how inheritance works in relation to variables. Let's say that I had the following class: class Test { private: int var1; float var2; public: void getInfo(int,float); void setStuff(int,float); }; Now, let's suppose that I wanted to derive a class from that base class; I …

Member Avatar for Ancient Dragon
0
206
Member Avatar for phummon

Hi everyone, I'm a moderate-level C++ programmer who is a little rusty at the moment. I've got an object question which is driving me nuts. I'm sure this is a C++ 101 level question, but for the life of me, I can't recall the solution. Basically, I've got one object …

Member Avatar for phummon
0
254
Member Avatar for Reeseoo

Hi all new to this forum, just thought i'd post in here because i am having a bit of trouble with an assignment... basically i have this class in a header file called Product.h... [CODE] class Product { private: int _id; unsigned int _price; public: }; [/CODE] I access this …

Member Avatar for Reeseoo
0
515
Member Avatar for tvm78

So I'm trying to write a program that is due tomorrow. I am trying to overload operators and dealing with template classes. I have everything written already but keep getting this error whenever i try to compile the driver file: NOTE: proj4.cpp has #include "box.h" and box.h compiles fine, but …

Member Avatar for NathanOliver
0
270
Member Avatar for kutuup

I have no idea what is going on here, first, the code: [CODE] #pragma once #include <stdio.h> //#include <stdafx.h> #include <allegro5/allegro.h> //#include <allegro_image.h> class DisplayController { public: int bitmapx; int bitmapy; // ALLEGRO_DISPLAY display; ALLEGRO_BITMAP *crosshairs; ALLEGRO_EVENT ev; ALLEGRO_EVENT_QUEUE *event_queue; void display() { this->event_queue = al_create_event_queue(); al_register_event_source(event_queue, al_get_mouse_event_source()); al_wait_for_event(event_queue, &ev); …

Member Avatar for kutuup
0
1K
Member Avatar for arthurav

I have the following program : [CODE] #include<iostream> #include<string> #include<conio.h> using namespace std; template <class T> class matrice { T **a; int m,n; public: matrice(); matrice(int,int,int); matrice(char *); matrice(int,int,T **); matrice(matrice &x); ~matrice(){}; template <class U> friend ostream &operator <<(ostream &,matrice<U> &); int getNrLinii(){ return m; } int getNrColoane(){ return …

Member Avatar for Fbody
0
187
Member Avatar for kangkan_14

Can anyone please explain what is 'public' and 'private' in oop and specifically in java? I am a bit confused.

Member Avatar for kangkan_14
0
273
Member Avatar for ingrammusic

I noticed one of our clients was using an IP scheme for their internal network that wasn't one of the 3 groups of private IP addresses. They were using 200.200.200.0/24 They haven't had any problems so far, but will this cause any problems in the future?

Member Avatar for CimmerianX
0
261

The End.