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.
1. Defining Simple Classes
- Creating objects
- Using classes
- Class data
- Access modifiers
- 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.