TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Santosh Reddy
NA
64
20.8k
readonly keyword
May 30 2017 11:59 PM
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ConsoleApplication19
{
class a
{
public int www;
readonly string ww = "rrr";
public string check;
}
class b : a
{
public b(int www, string ww)
{
www = 123;
ww = "rrr";
}
public void get()
{
Console.WriteLine("enter details");
this.check = Console.ReadLine();
}
public b()
{
///// if will not taken in this constructor i got the some error if it given no error why?
}
public void dis()
{
Console.WriteLine("check is a" + this.check);
}
}
class c : b
{
static void Main(string[] args)
{
a obj = new a();
}
}
}
Reply
Answers (
2
)
How to save datagridview as csv file?
How to Write this VB6.0 Function in VB.net