100 techNewbies questions

by Chioma Goodluck


depending on the input.

26. **What is encapsulation?**
The practice of keeping data private and exposing only necessary parts.

27. **What is abstraction?**
Hiding the complexity of code and showing only essential details.

28. **What is a constructor?**
A special method used to initialize objects.

29. **What is the difference between `public`, `private`, and `protected`?**
- **Public:** Accessible everywhere.
- **Private:** Accessible only within the class.
- **Protected:** Accessible in the class and its subclasses.

30. **What is a method?**
A function defined within a class.

---

### **Web Development**

31. **What is HTML?**
HyperText Markup Language, used for structuring web content.

32. **What is CSS?**
Cascading Style Sheets, used for styling web pages.

33. **What is JavaScript?**
A programming language for creating interactive web elements.

34. **What is a web framework?**