Day 13 ------------ 1.Class,Method,Object 2.Constructor 3.Object aliasing Questions[Theory]: ----------------- 1.What is mean by class , method ,object? 2.What is the difference between function and method? 3.Write a syntax of class ? 4.What is mean by self? 5.What is mean by constructor ? 6.What is the reason for constructor ? 7.What is mean by object aliasing? 8.In object aliasing object are stored in different location or not? 9.What is syntax for constructor? 10.What is mean by Special variable? 11.Is there any restriction for passing arguments in methods? 12.In which order methods will execute? QUESTIONS(Programs): ----------------- QUESTION 1: ----------- Class :Employee Methods :emp_Id(),emp_Name(),emp_Dob(),emp_Phone(),emp_Email(),emp_Address() Description: Create an object for employee class and call above methods QUESTION 2: ------------ Class :College Methods :college_Name(),college_Code(),college_Rank(),hostel_Name(),dept_Name() Description: Create an object for employee class and call above methods QUESTION 3: ----------- Class :PhoneInfo Methods :phone_Name(),phone_MieiNum(),Camera(),storage(),os_Name() Description: Create an object for PhoneInfo class and call above methods QUESTION 4: ----------- Class :GreensTech Methods :greens_Omr(id),greens_Adayar(name),greens_Tambaram(address),greens_Velacherry(count) Description: Create an object for GreensTech class and call above methods and also pass the arguments Question 5: ------------- Description : Find the output class Employee_details: def __init__(self): print("constructor") def add(self): print("add") d = Employee_details() d.add() Question 6: ------------- Description : Find the output class Employee_details: def __init__(self,id,name,email): self.id=id self.name=name self.email=email def add(self): print(self.id) d = Employee_details(10,"vel","vel@gmail.com") d.add() Question 7: ------------- Description : Find the output class Employee_details: def __init__(self,id,name,email): self.empid=id self.empname=name self.empemail=email def getId(self): print(self.empid) def getName(self): print(self.empname) def getemail(self): print(self.empemail) d = Employee_details(10,"vel","vel@gmail.com") d.getId() d.getName()