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

C#

 
GeneralRe: c# vs c++ Pin
The Man from U.N.C.L.E.12-Nov-09 5:32
The Man from U.N.C.L.E.12-Nov-09 5:32 
GeneralRe: c# vs c++ Pin
Blubbo12-Nov-09 8:30
Blubbo12-Nov-09 8:30 
Questiona french question Pin
boudj12-Nov-09 5:01
boudj12-Nov-09 5:01 
AnswerRe: NOT a french question Pin
Luc Pattyn12-Nov-09 5:07
sitebuilderLuc Pattyn12-Nov-09 5:07 
AnswerRe: a french question Pin
The Man from U.N.C.L.E.12-Nov-09 5:13
The Man from U.N.C.L.E.12-Nov-09 5:13 
AnswerRe: a french question Pin
Saksida Bojan12-Nov-09 6:05
Saksida Bojan12-Nov-09 6:05 
AnswerRe: a french question Pin
Paulo Zemek13-Nov-09 6:48
mvaPaulo Zemek13-Nov-09 6:48 
QuestionInheritance Pin
kumar sanghvi12-Nov-09 4:48
kumar sanghvi12-Nov-09 4:48 
Hi,

public class Parent

{

string parentString;
public Parent()
{
Console.WriteLine("Parent Constructor.");
}
public void print()
{
Console.WriteLine("I'm a Parent Class.");
}
}
public class Child : Parent
{
public Child()
: base("From Derived")
{
Console.WriteLine("Child Constructor.");
}
public static void Main()
{
Child child = new Child();
child.print();
}
}

In the above example why we should give public in front of each class name...eventhough
after removing that modifier it works in the same way....and when i tried to give private in front of class name it throws error...

Please let me know im a beginner in c#
AnswerRe: Inheritance Pin
Eduard Keilholz12-Nov-09 4:51
Eduard Keilholz12-Nov-09 4:51 
AnswerRe: Inheritance Pin
Xmen Real 12-Nov-09 4:51
professional Xmen Real 12-Nov-09 4:51 
AnswerRe: Inheritance Pin
PIEBALDconsult12-Nov-09 4:57
mvePIEBALDconsult12-Nov-09 4:57 
GeneralRe: Inheritance Pin
Covean12-Nov-09 4:59
Covean12-Nov-09 4:59 
GeneralRe: Inheritance Pin
PIEBALDconsult12-Nov-09 5:03
mvePIEBALDconsult12-Nov-09 5:03 
GeneralRe: Inheritance Pin
Covean12-Nov-09 5:06
Covean12-Nov-09 5:06 
AnswerRe: Inheritance Pin
Covean12-Nov-09 4:58
Covean12-Nov-09 4:58 
GeneralRe: Inheritance Pin
FEMDEV12-Nov-09 5:56
FEMDEV12-Nov-09 5:56 
GeneralRe: Inheritance Pin
harold aptroot12-Nov-09 6:13
harold aptroot12-Nov-09 6:13 
GeneralRe: Inheritance Pin
PIEBALDconsult12-Nov-09 7:01
mvePIEBALDconsult12-Nov-09 7:01 
QuestionSPLITING A STRING LIKE 10/JULY/1988 AND BIND INTO 3 COMBOBOX SUCH AS DAY ,MONTH,YEAR. Pin
sudhir behera12-Nov-09 4:37
sudhir behera12-Nov-09 4:37 
AnswerRe: SPLITING A STRING LIKE 10/JULY/1988 AND BIND INTO 3 COMBOBOX SUCH AS DAY ,MONTH,YEAR. [modified] Pin
Covean12-Nov-09 4:42
Covean12-Nov-09 4:42 
GeneralRe: SPLITING A STRING LIKE 10/JULY/1988 AND BIND INTO 3 COMBOBOX SUCH AS DAY ,MONTH,YEAR. Pin
Xmen Real 12-Nov-09 4:49
professional Xmen Real 12-Nov-09 4:49 
GeneralRe: SPLITING A STRING LIKE 10/JULY/1988 AND BIND INTO 3 COMBOBOX SUCH AS DAY ,MONTH,YEAR. Pin
Covean12-Nov-09 4:54
Covean12-Nov-09 4:54 
AnswerRe: SPLITING A STRING LIKE 10/JULY/1988 AND BIND INTO 3 COMBOBOX SUCH AS DAY ,MONTH,YEAR. [modified] Pin
PIEBALDconsult12-Nov-09 4:50
mvePIEBALDconsult12-Nov-09 4:50 
AnswerRe: SPLITING A STRING LIKE 10/JULY/1988 AND BIND INTO 3 COMBOBOX SUCH AS DAY ,MONTH,YEAR. Pin
David Skelly12-Nov-09 5:14
David Skelly12-Nov-09 5:14 
AnswerRe: SPLITING A STRING LIKE 10/JULY/1988 AND BIND INTO 3 COMBOBOX SUCH AS DAY ,MONTH,YEAR. Pin
Richard MacCutchan12-Nov-09 5:46
mveRichard MacCutchan12-Nov-09 5:46 

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.