Click here to Skip to main content
15,890,527 members
Home / Discussions / C#
   

C#

 
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 
AnswerRe: Trying to understand the Factory Pattern Pin
Vikram A Punathambekar23-Apr-07 7:13
Vikram A Punathambekar23-Apr-07 7:13 
AnswerRe: Trying to understand the Factory Pattern Pin
Edmundisme23-Apr-07 11:00
Edmundisme23-Apr-07 11:00 
AnswerRe: Trying to understand the Factory Pattern Pin
martin_hughes10-May-07 8:41
martin_hughes10-May-07 8:41 
QuestionByte conversion fails Pin
AAKAra23-Apr-07 4:25
AAKAra23-Apr-07 4:25 
AnswerRe: Byte conversion fails Pin
Judah Gabriel Himango23-Apr-07 4:28
sponsorJudah Gabriel Himango23-Apr-07 4:28 
GeneralRe: Byte conversion fails Pin
AAKAra23-Apr-07 4:31
AAKAra23-Apr-07 4:31 
GeneralRe: Byte conversion fails Pin
Judah Gabriel Himango23-Apr-07 4:43
sponsorJudah Gabriel Himango23-Apr-07 4:43 
GeneralRe: Byte conversion fails Pin
AAKAra23-Apr-07 4:50
AAKAra23-Apr-07 4:50 
GeneralRe: Byte conversion fails Pin
AAKAra23-Apr-07 7:55
AAKAra23-Apr-07 7:55 
AnswerRe: Byte conversion fails Pin
Luc Pattyn23-Apr-07 8:29
sitebuilderLuc Pattyn23-Apr-07 8:29 
GeneralRe: Byte conversion fails [modified] Pin
AAKAra23-Apr-07 9:04
AAKAra23-Apr-07 9:04 
GeneralRe: Byte conversion fails Pin
Luc Pattyn23-Apr-07 9:37
sitebuilderLuc Pattyn23-Apr-07 9:37 
QuestionSelecting Row in GridView to show another GridView Pin
junisulaiman23-Apr-07 4:23
junisulaiman23-Apr-07 4:23 

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.