namespace College { namespace Lib { class Book { public void Issue() { // Implementation code } } class Journal { public void Issue() { // Implementation code } } } }
College.Lib.Book b = new College.Lib.Book(); b.Issue();
Book b = new Book(); b.Issue();
using College.Lib; Book b = new Book(); b.Issue();
using College; Lib.Book b = new Lib.Book(); b.Issue();
using College.Lib.Book; Book b = new Book(); b.Issue();
class Sample { int i; Single j; double k; public Sample (int ii, Single jj, double kk) { i = ii; j = jj; k = kk; } }
namespace CuriousTabConsoleApplication { class SampleProgram { static void Main(string[] args) { int num = 1; funcv(num); Console.Write(num + ", "); funcr(ref num); Console.Write(num + ", "); } static void funcv(int num) { num = num + 10; Console.Write(num + ", "); } static void funcr (ref int num) { num = num + 10; Console.Write(num + ", "); } } }
Comments
There are no comments.Copyright ©CuriousTab. All rights reserved.