Click here to Skip to main content
15,924,452 members
Home / Discussions / C#
   

C#

 
QuestionHost Designer with rubber band selection band problem Pin
Christopher Stratmann23-Apr-07 7:22
Christopher Stratmann23-Apr-07 7:22 
Questionimporting flash to c# Pin
sushantkaura23-Apr-07 7:11
sushantkaura23-Apr-07 7:11 
QuestionFile name Pin
Anka_Ame23-Apr-07 7:06
Anka_Ame23-Apr-07 7:06 
AnswerRe: File name Pin
Dave Kreskowiak23-Apr-07 8:42
mveDave Kreskowiak23-Apr-07 8:42 
AnswerRe: File name Pin
Patrick Etc.23-Apr-07 14:45
Patrick Etc.23-Apr-07 14:45 
AnswerRe: File name Pin
Keshav V. Kamat23-Apr-07 16:27
Keshav V. Kamat23-Apr-07 16:27 
QuestionVisual Fox pro database to Sql Server Pin
Suj_7823-Apr-07 6:33
Suj_7823-Apr-07 6:33 
AnswerRe: Visual Fox pro database to Sql Server Pin
mikanu23-Apr-07 7:03
mikanu23-Apr-07 7:03 
AnswerRe: Visual Fox pro database to Sql Server Pin
andyharman23-Apr-07 7:07
professionalandyharman23-Apr-07 7:07 
QuestionRecording from Microphone to mp3 Pin
Petr Jiranek23-Apr-07 6:12
Petr Jiranek23-Apr-07 6:12 
AnswerRe: Recording from Microphone to mp3 Pin
MoustafaS23-Apr-07 6:23
MoustafaS23-Apr-07 6:23 
GeneralRe: Recording from Microphone to mp3 Pin
Petr Jiranek23-Apr-07 6:35
Petr Jiranek23-Apr-07 6:35 
GeneralRe: Recording from Microphone to mp3 Pin
MoustafaS23-Apr-07 7:30
MoustafaS23-Apr-07 7:30 
QuestionFinding updated records in Access db Pin
Richard Blythe23-Apr-07 5:21
Richard Blythe23-Apr-07 5:21 
AnswerRe: Finding updated records in Access db Pin
Dave Kreskowiak23-Apr-07 6:05
mveDave Kreskowiak23-Apr-07 6:05 
GeneralRe: Finding updated records in Access db Pin
Richard Blythe23-Apr-07 6:27
Richard Blythe23-Apr-07 6:27 
QuestionUnknown Error Message Pin
JMOdom23-Apr-07 5:12
JMOdom23-Apr-07 5:12 
AnswerRe: Unknown Error Message Pin
kubben23-Apr-07 5:41
kubben23-Apr-07 5:41 
AnswerRe: Unknown Error Message Pin
Jon Sagara23-Apr-07 6:35
Jon Sagara23-Apr-07 6:35 
AnswerRe: Unknown Error Message Pin
Vikram A Punathambekar23-Apr-07 6:59
Vikram A Punathambekar23-Apr-07 6:59 
GeneralRe: Unknown Error Message Pin
JMOdom23-Apr-07 7:58
JMOdom23-Apr-07 7:58 
Smile | :) Thanks for your answers folks. I have found the solution (pardon the pun) to the problem. It seems that I had accidently typed in some code from the wrong page. Dead | X| Below I've listed my coding that works correctly. Thanks again. Big Grin | :-D


using System;<br />
using System.Collections.Generic;<br />
using System.Text;<br />
using PersonNameSpace;   //Added to avoid using fully qualified names<br />
<br />
namespace StudentNameSpace<br />
{<br />
    public class Student : Person<br />
    {<br />
        private string major;<br />
        private int studentId;<br />
<br />
<br />
        //Default constructor<br />
        public Student() : base()    //no arguments sent to base constructor<br />
        {<br />
            major = "unknown";<br />
            studentId = 0;<br />
        }<br />
        //Constructor that sends arguments to base class<br />
        public Student(string id, string fname, string lname, string maj, int sId)<br />
            : base(id, lname, fname)    //base constructor arguments<br />
        {<br />
            major = maj;<br />
            studentId = sId;<br />
        }<br />
<br />
    //Read only Property for studentId<br />
      public int StudentId<br />
       {<br />
          get<br />
          {<br />
            return studentId;<br />
          }<br />
        }<br />
        //Propertiy for the major data field<br />
        public string Major<br />
        {<br />
          get<br />
            {<br />
                return major;<br />
            }<br />
            set<br />
            {<br />
                major = value;<br />
            }<br />
}<br />
            //Overrides GetSleepAmt() method of the Person class<br />
            public override int GetSleepAmt()<br />
            {<br />
                return 6;<br />
            }<br />
            //Using the base keyword, calls the overridden<br />
            // GetSleepAmt() method of the Person class<br />
            public int CallOverriddenGetSleepAmt()<br />
            {<br />
                return base.GetSleepAmt();<br />
            }<br />
    }<br />
}

QuestionHow to convert .gif file contains text only to .doc formate in asp.net Pin
attalurisubbu23-Apr-07 4:49
attalurisubbu23-Apr-07 4:49 
AnswerRe: How to convert .gif file contains text only to .doc formate in asp.net Pin
Dave Kreskowiak23-Apr-07 5:56
mveDave Kreskowiak23-Apr-07 5:56 
QuestionHow Making windows Fax Services to send multiple faxes. Pin
Eddymvp23-Apr-07 4:33
Eddymvp23-Apr-07 4:33 
QuestionTrying to understand the Factory Pattern Pin
martin_hughes23-Apr-07 4:29
martin_hughes23-Apr-07 4:29 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.