Answer: Constructors can specify parameters but not return types.
Explanation:
public class Student {
int roll_no;
public Student(int a) {
roll_no = a;
}
public static void main(String[] args) {
Student abs = new Student(10);
System.out.println(abc.roll_no);
}
}
In the above code we have illustrated the working of constructors. We have a class with the name Student. then a constructor is created of the class called as the class constructor. In the main we create an object of the class and with this object we invoke the constructor and also pass a parameter. Here in the code we are passing the roll no of the student.
So we can say that constructor is called during the runtime when the object created invokes the constructor so a constructor can have many arguments but it does not have a return type.
Answer:
B-Everything you put online is available forever. Messages or photos will never be permanently deleted from memory cards on cameras or cell phones.
Linux. You do not need Linux as an operating system for your website.
Objects both in the real world and in object-oriented programming contain <u>attributes</u> and methods.
<h3>What is an attribute?</h3>
In Computer technology, an attribute can be defined as a unique characteristic or quality which primarily describes an entity in a software program.
<h3>What is a method?</h3>
In Computer programming, a method can be defined as a block of executable code (sets of instruction) that are written and used by programmers to break down a given problem into small but manageable fragments (pieces).
This ultimately implies that, methods are typically written and used by programmers to break down any complex problem into simple and manageable fragments (pieces). Also, all modern programming languages comprises several methods that are predefined.
In this context, we can infer and logically deduce that all objects both in the real world and in object-oriented programming generally contain <u>attributes</u> and methods.
Read more on methods here: brainly.com/question/25619349
#SPJ4