Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Day 1 Assignment #6

Open
wants to merge 42 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
42 commits
Select commit Hold shift + click to select a range
b3399cc
Create TestAccount.java
vedantinigaikwad Sep 17, 2020
69691ee
Create AccountServices.java
vedantinigaikwad Sep 17, 2020
8c85461
Create Account.java
vedantinigaikwad Sep 17, 2020
8efb02e
Create TestAccount.class
vedantinigaikwad Sep 17, 2020
22e8f53
Create AccountServices.class
vedantinigaikwad Sep 17, 2020
69f7374
Create Account.class
vedantinigaikwad Sep 17, 2020
96b66b3
Create org.eclipse.jdt.core.prefs
vedantinigaikwad Sep 17, 2020
0d1547d
Create .project
vedantinigaikwad Sep 17, 2020
c3162b2
Create .classpath
vedantinigaikwad Sep 17, 2020
f550bdd
Update TestEmloyee.java
vedantinigaikwad Sep 21, 2020
ca64494
Create .classpath
vedantinigaikwad Sep 21, 2020
73a364d
Create .project
vedantinigaikwad Sep 21, 2020
d2ccf9f
Create org.eclipse.jdt.core.prefs
vedantinigaikwad Sep 21, 2020
e72e4ce
Create Account.class
vedantinigaikwad Sep 21, 2020
bc43602
Create Current.class
vedantinigaikwad Sep 21, 2020
fce60dc
Create Saving.class
vedantinigaikwad Sep 21, 2020
800e129
Create AccountDao.class
vedantinigaikwad Sep 21, 2020
0bdc75e
Create AccountDaoImpl.class
vedantinigaikwad Sep 21, 2020
5c565f4
Create AccountNotFoundException.class
vedantinigaikwad Sep 21, 2020
1b97b75
Create AccountService.class
vedantinigaikwad Sep 21, 2020
ac30015
Create AccountServiceImpl.class
vedantinigaikwad Sep 21, 2020
a581fdf
Create TestAccount.class
vedantinigaikwad Sep 21, 2020
2070f40
Create Account.java
vedantinigaikwad Sep 21, 2020
a5e8293
Create Current.java
vedantinigaikwad Sep 21, 2020
09d596a
Create Saving.java
vedantinigaikwad Sep 21, 2020
3166cfc
Create AccountDao.java
vedantinigaikwad Sep 21, 2020
4d9a1fa
Create AccountDaoImpl.java
vedantinigaikwad Sep 21, 2020
24394eb
Create AccountNotFoundException.java
vedantinigaikwad Sep 21, 2020
21828b8
Create AccountService.java
vedantinigaikwad Sep 21, 2020
cfe22e3
Create AccountServiceImpl.java
vedantinigaikwad Sep 21, 2020
6c47021
Create TestAccount.java
vedantinigaikwad Sep 21, 2020
0e9caf2
changes
vedantinigaikwad Sep 28, 2020
edf158d
Update TestCRUDusingfile.java
vedantinigaikwad Sep 23, 2020
2a9d1f1
Update ProductServiceImpl.java
vedantinigaikwad Sep 23, 2020
1b2c912
Update ProductService.java
vedantinigaikwad Sep 23, 2020
5bbd702
Update ProductDaoImpl.java
vedantinigaikwad Sep 23, 2020
564a271
Update ProductDao.java
vedantinigaikwad Sep 23, 2020
b86b86c
Update productData.dat
vedantinigaikwad Sep 23, 2020
bae7661
HSBC_PRACTICAL_EXAM
vedantinigaikwad Sep 24, 2020
11e9e92
Update DBUtil.java
vedantinigaikwad Sep 25, 2020
43223fc
tt
vedantinigaikwad Sep 28, 2020
4dafb54
Create debug.log
vedantinigaikwad Oct 20, 2020
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
core_autoIgnoreDerivedResources=false
eclipse.preferences.version=1
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
eclipse.preferences.version=1
org.eclipse.jdt.launching.PREF_VM_XML=<?xml version\="1.0" encoding\="UTF-8" standalone\="no"?>\r\n<vmSettings defaultVM\="57,org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType13,1600159943961" defaultVMConnector\="">\r\n<vmType id\="org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType">\r\n<vm id\="1600159879528" name\="jre1.8.0_161" path\="C\:\\Program Files\\Java\\jre1.8.0_161"/>\r\n<vm id\="1600159943961" name\="jdk1.8.0_161" path\="C\:\\Program Files\\Java\\jdk1.8.0_161"/>\r\n</vmType>\r\n</vmSettings>\r\n
org.eclipse.jdt.launching.PREF_VM_XML=<?xml version\="1.0" encoding\="UTF-8" standalone\="no"?>\r\n<vmSettings defaultVM\="57,org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType13,1601034417326" defaultVMConnector\="">\r\n<vmType id\="org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType">\r\n<vm id\="1601034417326" name\="jre1.8.0_261" path\="C\:\\Program Files\\Java\\jre1.8.0_261"/>\r\n</vmType>\r\n</vmSettings>\r\n
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
eclipse.preferences.version=1
org.eclipse.jsch.core.hasChangedDefaultWin32SshHome=true
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
PROBLEMS_FILTERS_MIGRATE=true
eclipse.preferences.version=1
platformState=1520745917688
platformState=1600161396199
quickStart=false
tipsAndTricks=true
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ org.eclipse.jface.textfont=1|Consolas|15.75|0|WINDOWS|1|-21|0|0|0|400|0|0|0|0|3|
org.eclipse.mylyn.wikitext.ui.presentation.textFont=1|Consolas|15.75|0|WINDOWS|1|-21|0|0|0|400|0|0|0|0|3|2|1|49|Consolas;
org.eclipse.pde.internal.ui.compare.ManifestContentMergeViewer=1|Consolas|15.75|0|WINDOWS|1|-21|0|0|0|400|0|0|0|0|3|2|1|49|Consolas;
org.eclipse.pde.internal.ui.compare.PluginContentMergeViewer=1|Consolas|15.75|0|WINDOWS|1|-21|0|0|0|400|0|0|0|0|3|2|1|49|Consolas;
org.eclipse.ui.commands=<?xml version\="1.0" encoding\="UTF-8"?>\r\n<org.eclipse.ui.commands/>
org.eclipse.wst.jsdt.internal.ui.compare.JavaMergeViewer=1|Consolas|15.75|0|WINDOWS|1|-21|0|0|0|400|0|0|0|0|3|2|1|49|Consolas;
org.eclipse.wst.jsdt.ui.editors.textfont=1|Consolas|15.75|0|WINDOWS|1|-21|0|0|0|400|0|0|0|0|3|2|1|49|Consolas;
org.eclipse.wst.sse.ui.textfont=1|Consolas|15.75|0|WINDOWS|1|-21|0|0|0|400|0|0|0|0|3|2|1|49|Consolas;
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
eclipse.preferences.version=1
org.springframework.ide.eclipse.imports.importStaticsInstanceScope=true
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
eclipse.preferences.version=1
org.springsource.ide.eclipse.commons.frameworks.ui.legacyconversion.done=true
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
eclipse.preferences.version=1
egit.pref.fixed.core_autoIgnoreDerivedResources=true
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified .metadata/.plugins/org.eclipse.jdt.core/2090319832.index
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified .metadata/.plugins/org.eclipse.jdt.core/2567952455.index
Binary file not shown.
Binary file modified .metadata/.plugins/org.eclipse.jdt.core/2741426105.index
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified .metadata/.plugins/org.eclipse.jdt.core/assumedExternalFilesCache
Binary file not shown.
1 change: 1 addition & 0 deletions .metadata/.plugins/org.eclipse.jdt.launching/.install.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,5 @@
<dirs>
<entry loc="C:\Program Files\Java\jre1.8.0_161" stamp="1521553550423"/>
<entry loc="C:\Program Files\Java\jdk1.8.0_161" stamp="1521553553008"/>
<entry loc="C:\Program Files\Java\jre1.8.0_261" stamp="1600155923431"/>
</dirs>
19 changes: 19 additions & 0 deletions .metadata/.plugins/org.eclipse.jdt.launching/libraryInfos.xml
Original file line number Diff line number Diff line change
Expand Up @@ -38,4 +38,23 @@
<entry path="C:\Program Files\Java\jdk1.8.0_161\jre\lib\endorsed"/>
</endorsedDirs>
</libraryInfo>
<libraryInfo home="C:\Program Files\Java\jre1.8.0_261" version="1.8.0_261">
<bootpath>
<entry path="C:\Program Files\Java\jre1.8.0_261\lib\resources.jar"/>
<entry path="C:\Program Files\Java\jre1.8.0_261\lib\rt.jar"/>
<entry path="C:\Program Files\Java\jre1.8.0_261\lib\sunrsasign.jar"/>
<entry path="C:\Program Files\Java\jre1.8.0_261\lib\jsse.jar"/>
<entry path="C:\Program Files\Java\jre1.8.0_261\lib\jce.jar"/>
<entry path="C:\Program Files\Java\jre1.8.0_261\lib\charsets.jar"/>
<entry path="C:\Program Files\Java\jre1.8.0_261\lib\jfr.jar"/>
<entry path="C:\Program Files\Java\jre1.8.0_261\classes"/>
</bootpath>
<extensionDirs>
<entry path="C:\Program Files\Java\jre1.8.0_261\lib\ext"/>
<entry path="C:\WINDOWS\Sun\Java\lib\ext"/>
</extensionDirs>
<endorsedDirs>
<entry path="C:\Program Files\Java\jre1.8.0_261\lib\endorsed"/>
</endorsedDirs>
</libraryInfo>
</libraryInfos>
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
<configuration scan="true">
<appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">
<encoder class="ch.qos.logback.classic.encoder.PatternLayoutEncoder">
<pattern>%date [%thread] %-5level %logger{35} - %msg%n</pattern>
</encoder>
<filter class="ch.qos.logback.classic.filter.ThresholdFilter">
<level>OFF</level> <!-- change to DEBUG to mimic '-consolelog' behaviour -->
</filter>
</appender>

<appender name="FILE" class="ch.qos.logback.core.rolling.RollingFileAppender">
<File>${org.eclipse.m2e.log.dir}/0.log</File>
<rollingPolicy class="ch.qos.logback.core.rolling.FixedWindowRollingPolicy">
<FileNamePattern>${org.eclipse.m2e.log.dir}/%i.log</FileNamePattern>
<MinIndex>1</MinIndex>
<MaxIndex>10</MaxIndex>
</rollingPolicy>
<triggeringPolicy class="ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy">
<MaxFileSize>100MB</MaxFileSize>
</triggeringPolicy>
<encoder class="ch.qos.logback.classic.encoder.PatternLayoutEncoder">
<pattern>%date [%thread] %-5level %logger{35} - %msg%n</pattern>
</encoder>
</appender>

<appender name="EclipseLog" class="org.eclipse.m2e.logback.appender.EclipseLogAppender">
<filter class="ch.qos.logback.classic.filter.ThresholdFilter">
<level>WARN</level>
</filter>
</appender>

<appender name="MavenConsoleLog" class="org.eclipse.m2e.logback.appender.MavenConsoleAppender">
</appender>

<root level="INFO">
<appender-ref ref="FILE" />
<appender-ref ref="STDOUT" />
<appender-ref ref="EclipseLog" />
<appender-ref ref="MavenConsoleLog" />
</root>

<logger name="com.ning.http.client" level="INFO" />
</configuration>
3 changes: 3 additions & 0 deletions .metadata/.plugins/org.eclipse.tips.ide/dialog_settings.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
<?xml version="1.0" encoding="UTF-8"?>
<section name="Workbench">
</section>
42 changes: 42 additions & 0 deletions .metadata/.plugins/org.eclipse.ui.ide/dialog_settings.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
<?xml version="1.0" encoding="UTF-8"?>
<section name="Workbench">
<list key="installedFeatures">
<item value="com.ianbrandt.tools.m2e.mdp.feature:0.0.4.201409291703"/>
<item value="org.eclipse.buildship:3.1.2.v20190903-1802"/>
<item value="org.eclipse.egit.gitflow.feature:5.5.0.201909110433-r"/>
<item value="org.eclipse.egit:5.5.0.201909110433-r"/>
<item value="org.eclipse.emf.common:2.16.0.v20190625-1131"/>
<item value="org.eclipse.emf.ecore:2.19.0.v20190822-1451"/>
<item value="org.eclipse.epp.mpc:1.8.0.v20190725-1807"/>
<item value="org.eclipse.help:2.2.700.v20190916-1045"/>
<item value="org.eclipse.jdt:3.18.100.v20190916-1045"/>
<item value="org.eclipse.jgit.lfs:5.5.0.201909110433-r"/>
<item value="org.eclipse.jgit.ssh.apache:5.5.0.201909110433-r"/>
<item value="org.eclipse.jgit:5.5.0.201909110433-r"/>
<item value="org.eclipse.jst.common.fproj.enablement.jdt:3.12.0.v201906031755"/>
<item value="org.eclipse.jst.enterprise_ui.feature:3.15.0.v201908261515"/>
<item value="org.eclipse.m2e.feature:1.13.0.20190716-1624"/>
<item value="org.eclipse.m2e.logback.feature:1.13.0.20190716-1624"/>
<item value="org.eclipse.m2e.wtp.feature:1.4.2.20190530-0057"/>
<item value="org.eclipse.m2e.wtp.jaxrs.feature:1.4.2.20190530-0057"/>
<item value="org.eclipse.m2e.wtp.jsf.feature:1.4.2.20190530-0057"/>
<item value="org.eclipse.pde:3.14.100.v20190916-1045"/>
<item value="org.eclipse.platform:4.13.0.v20190916-1323"/>
<item value="org.eclipse.rcp:4.13.0.v20190916-1045"/>
<item value="org.eclipse.tm.terminal.control.feature:4.5.102.201907301734"/>
<item value="org.eclipse.tm.terminal.feature:4.5.100.201907301734"/>
<item value="org.eclipse.tm.terminal.view.feature:4.5.100.201907301734"/>
<item value="org.eclipse.userstorage:1.2.0.v20190308-0433"/>
<item value="org.eclipse.wst.common.fproj:3.7.2.v201903222010"/>
<item value="org.eclipse.wst.jsdt.chromium.debug.feature:0.6.100.v201908270117"/>
<item value="org.eclipse.wst.jsdt.feature:2.1.3.v201908270117"/>
<item value="org.eclipse.wst.json_ui.feature:1.1.5.v201904210526"/>
<item value="org.eclipse.wst.web_ui.feature:3.15.0.v201908192247"/>
<item value="org.eclipse.wst.xml_ui.feature:3.15.0.v201907091226"/>
<item value="org.jboss.tools.m2e.wro4j.feature:1.1.0.201406251020"/>
<item value="org.jboss.tools.maven.apt.feature:1.5.2.201812241535"/>
<item value="org.sonatype.m2e.buildhelper.feature:0.15.0.201207090124"/>
<item value="org.sonatype.m2e.egit.feature:0.15.1.201806191431"/>
<item value="org.sonatype.m2e.mavenarchiver.feature:0.17.4.201905300046"/>
</list>
</section>
7 changes: 7 additions & 0 deletions .metadata/.plugins/org.eclipse.ui.workbench/workingsets.xml
Original file line number Diff line number Diff line change
@@ -1,4 +1,11 @@
<?xml version="1.0" encoding="UTF-8"?>
<workingSetManager>
<workingSet editPageId="org.eclipse.jdt.internal.ui.DynamicSourcesWorkingSet" factoryID="org.eclipse.ui.internal.WorkingSetFactory" id="1601033140127_1" label="Java Main Sources" name="Java Main Sources">
<item elementID="=ArrayDemo/src" factoryID="org.eclipse.jdt.ui.PersistableJavaElementFactory"/>
<item elementID="=AutogenerateId/src" factoryID="org.eclipse.jdt.ui.PersistableJavaElementFactory"/>
<item elementID="=InheritanceDemo/src" factoryID="org.eclipse.jdt.ui.PersistableJavaElementFactory"/>
<item elementID="=MyPersonDemo/src" factoryID="org.eclipse.jdt.ui.PersistableJavaElementFactory"/>
</workingSet>
<workingSet editPageId="org.eclipse.jdt.internal.ui.DynamicSourcesWorkingSet" factoryID="org.eclipse.ui.internal.WorkingSetFactory" id="1601033140157_2" label="Java Test Sources" name="Java Test Sources"/>
<workingSet aggregate="true" factoryID="org.eclipse.ui.internal.WorkingSetFactory" id="1600160048757_0" label="Window Working Set" name="Aggregate for window 1600160048755"/>
</workingSetManager>
2 changes: 1 addition & 1 deletion JDBCDemo/src/com/demo/dao/DBUtil.java
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ public class DBUtil {
static Connection conn=null;
public static Connection getMyConnection() {
if(conn==null) {
String url = "jdbc:derby:c:\\mydata\\hsbcdb";
String url = "jdbc:derby:C:\\\\Users\\\\Admin\\\\mydata\\\\hsbcdb";
String user = "hsbc";
String password = "hsbc123";
try {
Expand Down
Binary file modified ObjectSerializationDemo/productData.dat
Binary file not shown.
6 changes: 6 additions & 0 deletions ObjectSerializationDemo/src/com/demo/dao/ProductDao.java
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,12 @@ public interface ProductDao {

void writeDataToFile(String fname);

boolean deleteAProduct(int id);

boolean updatePriceAndQuantity(int id, double price, int qty);

Product displayProductById(int id);



}
27 changes: 27 additions & 0 deletions ObjectSerializationDemo/src/com/demo/dao/ProductDaoImpl.java
Original file line number Diff line number Diff line change
Expand Up @@ -74,5 +74,32 @@ public void writeDataToFile(String fname) {
}

}
@Override
public boolean deleteAProduct(int id) {
Product p;
return hashSet.remove(p=new Product(id,null,0.0,0));
}
@Override
public boolean updatePriceAndQuantity(int id, double price, int qty) {
for(Product p:hashSet) {
System.out.println(p.getPid()+"--------"+id);
if(p.getPid()==id) {
p.setPrice(price);
p.setQty(qty);
return true;
}
}
return false;
}
@Override
public Product displayProductById(int id) {

for(Product p:hashSet) {
if(p.hashCode()==id) {
return p;
}
}
return null;
}

}
12 changes: 12 additions & 0 deletions ObjectSerializationDemo/src/com/demo/service/ProductService.java
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,16 @@ public interface ProductService {

void writeData(String string);



boolean deleteProduct(int id);



boolean update(int id, double price, int qty);



Product displayById(int id);

}
Original file line number Diff line number Diff line change
Expand Up @@ -55,5 +55,17 @@ public void writeData(String fname) {
productDao.writeDataToFile(fname);

}
@Override
public boolean deleteProduct(int id) {
return productDao.deleteAProduct(id);
}
@Override
public boolean update(int id, double price, int qty) {
return productDao.updatePriceAndQuantity(id,price,qty);
}
@Override
public Product displayById(int id) {
return productDao.displayProductById(id);
}

}
28 changes: 28 additions & 0 deletions ObjectSerializationDemo/src/com/demo/test/TestCRUDusingfile.java
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,38 @@ public static void main(String[] args) {
}
break;
case 2:
//delete a product
System.out.println("Enter product id : ");
int id=sc.nextInt();
flag=productService.deleteProduct(id);
if(flag) {
System.out.println("Product deleted");
}
else {
System.out.println("Product not deleted");
}
break;
case 3:
//update the price and quantity
System.out.println("Enter product id : ");
id=sc.nextInt();
System.out.println("Enter new price : ");
double price=sc.nextDouble();
System.out.println("Enter new quantity : ");
int qty=sc.nextInt();
flag=productService.update(id,price,qty);
if(flag) {
System.out.println("Product updated");
}
else {
System.out.println("Product not updated");
}
break;
case 4:
//display by id
System.out.println("Enter product id : ");
id=sc.nextInt();
System.out.println(productService.displayById(id));
break;
case 5:
//get all products
Expand Down
1 change: 1 addition & 0 deletions Polymorphismdemo1/src/com/demo/test/TestEmloyee.java
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ public static void main(String[] args) {
} catch (InvalidSalaryException e3) {
System.out.println(e3.getMessage());
//e3.printStackTrace();

}
break;
case 2:
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.8"/>
<classpathentry kind="src" path="src"/>
<classpathentry kind="output" path="bin"/>
</classpath>
17 changes: 17 additions & 0 deletions Practical_Exam_Vedantini_Gaikwad_WFS4/HSBCPracticalExam/.project
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>HSBCPracticalExam</name>
<comment></comment>
<projects>
</projects>
<buildSpec>
<buildCommand>
<name>org.eclipse.jdt.core.javabuilder</name>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>org.eclipse.jdt.core.javanature</nature>
</natures>
</projectDescription>
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
eclipse.preferences.version=1
org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.8
org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve
org.eclipse.jdt.core.compiler.compliance=1.8
org.eclipse.jdt.core.compiler.debug.lineNumber=generate
org.eclipse.jdt.core.compiler.debug.localVariable=generate
org.eclipse.jdt.core.compiler.debug.sourceFile=generate
org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
org.eclipse.jdt.core.compiler.source=1.8
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
package com.demo.bean;

public class Apparel extends Product {

private String size;
private String material;

//default constructor
public Apparel() {
size=null;
material=null;
}

//parameterized constructor
public Apparel(int code, String name, int qty, double price, int type,String size, String material) {
super(code, name, qty, price,type);
this.size = size;
this.material = material;
}

//setter and getter methods
public String getSize() {
return size;
}


public void setSize(String size) {
this.size = size;
}


public String getMaterial() {
return material;
}


public void setMaterial(String material) {
this.material = material;
}

//toString of apparels
@Override
public String toString() {
return super.toString() +", size=" + size + ", material=" + material;
}


}
Loading