-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathClassesAndObjects.cs
More file actions
32 lines (28 loc) · 890 Bytes
/
Copy pathClassesAndObjects.cs
File metadata and controls
32 lines (28 loc) · 890 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace C_Sharp_Lesson_One
{
internal class ClassesAndObjects
{
public static void ClassObj()
{
Books book1 = new Books();
book1.BookName = "The Alchemist";
book1.AuthorName = "Paulo Coelho";
book1.Price = 600;
Books book2 = new Books();
book2.BookName = "Think and Grow Rich";
book2.AuthorName = "Napoleon Hill";
book2.Price = 750;
Console.WriteLine("\n" + book1.BookName);
Console.WriteLine(book1.AuthorName);
Console.WriteLine(book1.Price + "\n");
Console.WriteLine(book2.BookName);
Console.WriteLine(book2.AuthorName);
Console.WriteLine(book2.Price);
}
}
}