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
Arun Kurmi
NA
104
103.8k
Is Possible,single Property use for 5 more same type fields?
Mar 31 2013 3:14 PM
hi friends,
I have a class Student.Where i declare 5 private field:
marksInMaths,marksInEng,marksInPhy,marksInChem and marksInHin.Then i created a seperate property with get{} and set{} for each namely Math,Phy,Chem,Eng and Hin. All the properties have same purpose for their respective subject.So i think if it is Possible perform all the five properties task in a single property then reduce my code.Is Possible??? if yes then please give an example.
Reply
Answers (
4
)
How to add image in table data from database?
Property in C#