Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- namespace ConsoleApplication57
- {
- class Program
- {
- static void Main(string[] args)
- {
- Student student = new Student(5, 3, 2);
- Console.WriteLine(student.CurrentValue.LangAvg);
- }
- }
- class StudentAvgValue
- {
- public int MathAvg { get; set; }
- public int LangAvg { get; set; }
- public int PenieAvg { get; set; }
- }
- class Student
- {
- public Student(int math, int lang, int penie)
- {
- CurrentValue = new StudentAvgValue();
- CurrentValue.MathAvg = math;
- CurrentValue.LangAvg = lang;
- CurrentValue.PenieAvg = penie;
- }
- public StudentAvgValue CurrentValue
- {
- get;
- set;
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement