Exemple #1
0
        static void Main(string[] args)
        {
            Post newPost = new Post("my title", "my description");

            newPost.upVote();
            newPost.upVote();
            newPost.upVote();
            newPost.downVote();

            Console.WriteLine(newPost.title);
            Console.WriteLine(newPost.description);
            Console.WriteLine(newPost.createdAt);
            Console.WriteLine(newPost.votes);
        }