How do we define a class?
class: a class describes the contents of the objects that belong to it: it describes an aggregate of data fields (called instance variables), and defines the operations (called methods). an object is an element (or instance) of a class; objects have the behaviors of their class.
What is the role and responsibility of a class teacher?
The primary role of a class teacher is to ensure that the students have a safe environment and proper Education. A class teacher is a second parent to all students. He/she provides teaching and efficient learning and motivates the students. A class teacher guides their students during any competition or school event.
What is lazy initialization Java?
In computer programming, lazy initialization is the tactic of delaying the creation of an object, the calculation of a value, or some other expensive process until the first time it is needed. It is a kind of lazy evaluation that refers specifically to the instantiation of objects or other resources.
What are the 7 roles of a good teacher?
7 Roles of A Teacher
- Authoritative/ Controller. The authoritative role that a teacher plays can be in two ways, high authority, high involvement, and high authority low involvement.
- Delegator.
- Prompter.
- Participant.
- Demonstrator.
- Lecturer/ tutor.
- Resource.
- Conclusion.
What is the main role of a teacher?
The primary role of a teacher is to deliver classroom instruction that helps students learn. To accomplish this, teachers must prepare effective lessons, grade student work and offer feedback, manage classroom materials, productively navigate the curriculum, and collaborate with other staff.
When does a class have a single responsibility?
A class should have a single responsibility, where a responsibility is nothing but a reason to change. What the definition means – When we design our classes, we should take care that one class at the most is responsible for doing one task or functionality among the whole set of responsibilities that it has.
Which is an example of the single responsibility principle?
The definition of Single Responsibility Principle sounds simple i.e. one class has one responsibility. But in reality, designs go in the other direction. Lets see an example to understand. Take a look at the Employee class below –
What are the duties of a class action representative?
In order to protect the interests of all class members, the class representative should have similar interests to those of the class members; such as having suffered the same type of losses under similar circumstances. The class representative should not have a conflict of interest with the other class members.
Can a class have only one reason to change?
A class should have one, and only one, reason to change. Even if you have never heard of Robert C. Martin or his popular books, you have probably heard about and used this principle. It is one of the basic principles most developers apply to build robust and maintainable software.