[9/13] Java Foundations Certification: Defining Classes

Share on facebook
Share on twitter
Share on linkedin
Build a strong foundation of knowledge in Java programming! In this lesson we take a closer look at defining classes.

In the current lesson, you will learn the foundations of Object-Oriented Programming (OOP).

Svetlin Nakov will go over the topics of defining simple classes, conventions, and best practices in doing so, creating objects of these classes, object references, and what is the difference between an object and a class

Later on in the lesson, you will become familiar with data fields and access modifiers, and of course – constructors, getters, and setters, which are the building blocks of every class. By the end of the lesson, you will also have a good understanding of the term static, which you’ve surely encountered multiple times so far.

You will find many helpful examples and exercises, so make sure to practice what you’ve learned!

As always, we advise you to pause the video right before the solving part of each problem and try to do the exercises on your own first. Then, if you have difficulties, just watch the provided solutions in the video. If you still have questions, we’re always here to help! Join our Facebook group and ask away!

*The exercise descriptions are to be found in the PDF document at the end of this post.

If you are new to programming, make sure to watch the Free Full Java Basics course first, as it is a necessary prerequisite to this one. It explains the topics in a lot more detail, as this video aims to revise them and get to more complex topics after that.
This course is also perfect for people who have some background in programming with a different language and would like to pick up on Java.

Lesson Topics

This video covers the following topics:

1. Defining Simple Classes

  • Creating objects
  • Using classes

2. Fields

  • Class data
  • Access modifiers

3. Methods

  • Getters
  • Setters
  • ToString()

4. Constructors

  • The keyword this

5. Static Members

  • Static methods and fields

Remember that coding is a skill, which should be practiced. To learn to code, you should write code, every day, for a long time. Watching tutorials is not enough. You should code! Now it’s your turn. Do your exercises!

Register now and take your free resources right away! You will get access to the 55+ fully automated exercises which will sharpen your coding skills. You will become a member of the SoftUni Global Community and we will provide you the opportunity to communicate with other students and mentors and get help for FREE.

Leave a Comment

Scroll to Top

Sign in

Don’t have an account? Register with us to join the community.