41
1
using System;
2
3
public class Student
4
{
5
public String name,last;
6
public int age;
7
//default constructor
8
public Student()
9
{
10
name = "Vikram Motwani";
11
age = 20;
12
}
13
//Parameterized constructor
14
public Student(String fullName,int a)
15
{
16
name = fullName;
17
age = a;
18
}
19
20
21
public void display()
22
{
23
Console.WriteLine("Name="+name);
24
Console.WriteLine("Age="+ age);
25
}
26
}
27
28
public class Program
29
{
30
public static void Main()
31
{
32
Student obj = new Student();
33
obj.display();
34
Console.WriteLine();
35
36
Student obj1 = new Student("Vikram Bajaj",21);
37
Console.WriteLine("Using paramterized constructor");
38
obj1.display();
39
40
}
41
}
Cached Result
Reparar em como o List foi montado para entender porque o resultado é 20.
A soma de Peculio_Valor onde todos os IDs = 1 e ID_arquivoPagamento = 2 é: 20
A soma de Peculio_Valor onde todos os IDs = 1 e ID_arquivoPagamento = 2 é: 20