Define encapsulation and give an example.
Encapsulation bundles data and methods in a class, restricting direct data access. Example: class with private data and public methods.
CV của bạn đã thể hiện đúng kỹ năng này chưa?
Biết trả lời câu hỏi mới là một nửa. Nửa còn lại là CV phải khiến nhà tuyển dụng mời bạn phỏng vấn. Chấm điểm CV so với JD bằng AI chỉ trong vài giây.
Câu hỏi liên quan về General Programming
- Explain the concept of polymorphism.
- What is an abstract class, and how is it different from an interface?
- What is the difference between compilation and interpretation?
- Describe the principles of Object-Oriented Programming (OOP).
- What is the purpose of a constructor?
- Explain the difference between stack and heap memory.