





Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
Community
Ask the community for help and clear up your study doubts
Discover the best universities in your country according to Docsity users
Free resources
Download our free guides on studying techniques, anxiety management strategies, and thesis advice from Docsity tutors
God is Great. Ujjain is the city of Gods
Typology: Study notes
1 / 9
This page cannot be seen from the preview
Don't miss anything!
It is a header file which contains the prototype of endl function and a namespace std which contains declaration of cin and cout objects. A class is a user defined data type which is used to make an own data type. A class keyword is used to declare a class. A class contains two things i.e. properties and methods. The object is created by the class and the size of the class is determined by the properties present in the class. A members of a class in specified by three access specifiers i.e. private, public and protected. Encapsulation is a technique to hide the internal features of an object. The encapsulation can only be done by private access specifier which is only applicable for class. It doesn't let those properties or methods which are declared or defined under it, to be disturbed by any other function defined outside of that class. The advantage of encapsulation is that the object stays in a valid state. Television is the best example of encapsulation because if the manufacturer doesn’t cover the back side of the television
by a back panel then anyone can disturb it’s internal features and the object i.e. television stays in invalid state. Therefore, the back side of television is being encapsulated by a back panel. So, that the object stays in valid state. Polymorphism is defined by three statements they are:-
So, that’s why the container doesn’t get the properties of content but it get it's name. There are two types of container :-
They are of three types
System.out.printf(“%d is alloted to %s
n”,rollNumber,vName); raf.close(); return; } } System.out.println(“Enter Name :”); vName=raf.readine(); raf.writeBytes(vName); raf writeBytes(“\n”); raf.writeBytes(valuTo(vRollNumber)); raf.writeBytes(“\n”); raf.close(); System.out.println(“Student Added”); } Public void editStudent() {} Public void deleteStudent() {} Public void searchStudent()
Public void displayListOfStudents() {} } Class UI { Public static void main{String gg[]) { InputStreamReader isr=new InputStreamReader(Syatem.in); BufferedReader br=new BufferedReader(isr); Int ch; While(1) { System.out.println(“1. Add Student”); System.out.println(“2. Edit Student”); System.out.println(“3. Delete Student”); System.out.println(“4. Search Student”); System.out.println(“5. Display list of Student”); System.out.println(“6. Exit”); System.out.println(“Enter your choice : “);